mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Update comments after # type: ignore to be compatible with PEP 484
This commit is contained in:
1 parent
0bcb0d0e3c
commit
5ffa3e85de
25 files changed
+68
-68
No files matched your search
+2
-2
@@ -511,7 +511,7 @@ class GuildChannel:
|
||||
|
||||
If there is no category then this is ``None``.
|
||||
"""
|
||||
return self.guild.get_channel(self.category_id) # type: ignore - These are coerced into CategoryChannel
|
||||
return self.guild.get_channel(self.category_id) # type: ignore # These are coerced into CategoryChannel
|
||||
|
||||
@property
|
||||
def permissions_synced(self) -> bool:
|
||||
@@ -843,7 +843,7 @@ class GuildChannel:
|
||||
obj = cls(state=self._state, guild=self.guild, data=data)
|
||||
|
||||
# temporarily add it to the cache
|
||||
self.guild._channels[obj.id] = obj # type: ignore - obj is a GuildChannel
|
||||
self.guild._channels[obj.id] = obj # type: ignore # obj is a GuildChannel
|
||||
return obj
|
||||
|
||||
async def clone(self, *, name: Optional[str] = None, reason: Optional[str] = None) -> Self:
|
||||
|
||||
Reference in new issue
Block a user