Skip to content

Commit d160b2b

Browse files
committed
linting
1 parent 2a0e93e commit d160b2b

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ async def update_perms(
10021002
else:
10031003
if value in permissions[name]:
10041004
permissions[name].remove(value)
1005-
1005+
10061006
if isinstance(name, PermissionLevel):
10071007
self.config["level_permissions"] = permissions
10081008
else:

cogs/utility.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,9 +1507,7 @@ async def permissions_get(
15071507
for command in self.bot.walk_commands():
15081508
if command not in done:
15091509
done.add(command)
1510-
permissions = command_permissions.get(
1511-
command.qualified_name, []
1512-
)
1510+
permissions = command_permissions.get(command.qualified_name, [])
15131511
if value in permissions:
15141512
cmds.append(command.qualified_name)
15151513

core/config.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,8 @@ class ConfigManager:
175175
"activity_type": discord.ActivityType,
176176
}
177177

178-
force_str = {
179-
"command_permissions",
180-
"level_permissions"
181-
}
182-
178+
force_str = {"command_permissions", "level_permissions"}
179+
183180
defaults = {**public_keys, **private_keys, **protected_keys}
184181
all_keys = set(defaults.keys())
185182

@@ -311,7 +308,7 @@ def get(self, key: str, convert=True) -> typing.Any:
311308
if isinstance(v, list):
312309
new_v = []
313310
for n in v:
314-
print('x', n, v)
311+
print("x", n, v)
315312
if n != -1 and not isinstance(n, str):
316313
changed = True
317314
n = str(n)

0 commit comments

Comments
 (0)