mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 00:13:01 +00:00
Document more uses of type ignore
This commit is contained in:
@@ -802,7 +802,9 @@ class GuildChannel:
|
||||
await http.delete_channel_permissions(self.id, target.id, reason=reason)
|
||||
elif isinstance(overwrite, PermissionOverwrite):
|
||||
(allow, deny) = overwrite.pair()
|
||||
await http.edit_channel_permissions(self.id, target.id, str(allow.value), str(deny.value), perm_type, reason=reason)
|
||||
await http.edit_channel_permissions(
|
||||
self.id, target.id, str(allow.value), str(deny.value), perm_type, reason=reason
|
||||
)
|
||||
else:
|
||||
raise InvalidArgument('Invalid overwrite type provided.')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user