Type hint channel.py

This commit is contained in:
Rapptz committed 2021-06-29 03:37:52 -04:00
1 parent eda02c2e91
commit 2beee8be14
2 files changed
+271 -223

No files matched your search

+270 -222
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -461,7 +461,7 @@ class Guild(Hashable):
for c in channels: for c in channels:
factory, ch_type = _guild_channel_factory(c['type']) factory, ch_type = _guild_channel_factory(c['type'])
if factory: 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: if 'threads' in data:
threads = data['threads'] threads = data['threads']