mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 04:17:16 +00:00
Move explanation note for type ignore above the offending line
This commit is contained in:
parent
28ed599345
commit
17f0b59c76
@ -153,7 +153,8 @@ class Template:
|
|||||||
source_serialised = data['serialized_source_guild']
|
source_serialised = data['serialized_source_guild']
|
||||||
source_serialised['id'] = guild_id
|
source_serialised['id'] = guild_id
|
||||||
state = _PartialTemplateState(state=self._state)
|
state = _PartialTemplateState(state=self._state)
|
||||||
self.source_guild = Guild(data=source_serialised, state=state) # type: ignore - Guild expects a ConnectionState, we're passing a _PartialTemplateState
|
# Guild expects a ConnectionState, we're passing a _PartialTemplateState
|
||||||
|
self.source_guild = Guild(data=source_serialised, state=state) # type: ignore
|
||||||
else:
|
else:
|
||||||
self.source_guild = guild
|
self.source_guild = guild
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user