mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-23 00:42:56 +00:00
Update comments after # type: ignore
to be compatible with PEP 484
This commit is contained in:
@@ -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