Type hint channel.py

This commit is contained in:
Rapptz 2021-06-29 03:37:52 -04:00
parent eda02c2e91
commit 2beee8be14
2 changed files with 271 additions and 223 deletions

File diff suppressed because it is too large Load Diff

View File

@ -461,7 +461,7 @@ class Guild(Hashable):
for c in channels:
factory, ch_type = _guild_channel_factory(c['type'])
if factory:
self._add_channel(factory(guild=self, data=c, state=self._state))
self._add_channel(factory(guild=self, data=c, state=self._state)) # type: ignore
if 'threads' in data:
threads = data['threads']