aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-06-29 02:26:07 -0400
committerRapptz <[email protected]>2021-06-29 02:26:07 -0400
commit485542c4809327b33223a9a46ea681a5e9793e43 (patch)
tree4915462e87d4c1fe98cfca7c083b39eb6c56c426
parentFix KeyError due to refactoring mistake in Overwrite handling (diff)
downloaddiscord.py-485542c4809327b33223a9a46ea681a5e9793e43.tar.xz
discord.py-485542c4809327b33223a9a46ea681a5e9793e43.zip
Fix typing linting error in threads
-rw-r--r--discord/threads.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/threads.py b/discord/threads.py
index 8d22c742..a686fab1 100644
--- a/discord/threads.py
+++ b/discord/threads.py
@@ -195,7 +195,7 @@ class Thread(Messageable, Hashable):
@property
def parent(self) -> Optional[TextChannel]:
"""Optional[:class:`TextChannel`]: The parent channel this thread belongs to."""
- return self.guild.get_channel(self.parent_id)
+ return self.guild.get_channel(self.parent_id) # type: ignore
@property
def owner(self) -> Optional[Member]: