Skip to content

Commit aeb0463

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 6e11847 commit aeb0463

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ These changes are available on the `master` branch, but have not yet been releas
104104
`Interaction.callback.is_loading()` and `Interaction.callback.is_ephemeral()`.
105105
([#2711](https://github.com/Pycord-Development/pycord/pull/2711))
106106

107-
108107
### Fixed
109108

110109
- Fixed `Enum` options not setting the correct type when only one choice is available.

count_sourcelines.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# includes an ignore_list. also prints total sloc
33

44
import os
5+
56
cur_path = os.getcwd()
6-
ignore_set = set(["__init__.py", "count_sourcelines.py"])
7+
ignore_set = {"__init__.py", "count_sourcelines.py"}
78

89
loc_list = []
910

@@ -13,13 +14,14 @@
1314
total_path = os.path.join(py_dir, py_file)
1415
try:
1516
# Open the file with UTF-8 encoding
16-
with open(total_path, "r", encoding="utf-8") as file:
17-
loc_list.append((len(file.read().splitlines()),
18-
total_path.split(cur_path)[1]))
17+
with open(total_path, encoding="utf-8") as file:
18+
loc_list.append(
19+
(len(file.read().splitlines()), total_path.split(cur_path)[1])
20+
)
1921
except UnicodeDecodeError as e:
2022
print(f"Skipping file {total_path} due to encoding error: {e}")
2123

2224
for line_number_count, filename in loc_list:
2325
print("%05d lines in %s" % (line_number_count, filename))
2426

25-
print("\nTotal: %s lines (%s)" % (sum([x[0] for x in loc_list]), cur_path))
27+
print("\nTotal: {} lines ({})".format(sum([x[0] for x in loc_list]), cur_path))

discord/interactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class Interaction:
158158
callback: Optional[:class:`InteractionCallback`]
159159
The callback of the interaction. Contains information about the status of the interaction response.
160160
Will be `None` until the interaction is responded to.
161-
161+
162162
.. versionadded:: 2.7
163163
command: Optional[:class:`ApplicationCommand`]
164164
The command that this interaction belongs to.

0 commit comments

Comments
 (0)