From 17f0b59c7663353b4f27a3b1a92d08c3ad10af53 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 18 Aug 2021 01:24:15 -0400 Subject: [PATCH] Move explanation note for type ignore above the offending line --- discord/template.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/template.py b/discord/template.py index 59db7550b5..55e3556a6e 100644 --- a/discord/template.py +++ b/discord/template.py @@ -153,7 +153,8 @@ def _store(self, data: TemplatePayload) -> None: source_serialised = data['serialized_source_guild'] source_serialised['id'] = guild_id 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: self.source_guild = guild