Add return type hint for some functions

This commit is contained in:
Harshal Laheri
2022-07-15 09:45:42 +05:30
committed by GitHub
parent e0341c9ef2
commit 20d3871290
6 changed files with 17 additions and 15 deletions

View File

@ -62,7 +62,9 @@ class WelcomeChannel:
The emoji used beside the channel description.
"""
def __init__(self, *, channel: Snowflake, description: str, emoji: Optional[Union[PartialEmoji, Emoji, str]] = None):
def __init__(
self, *, channel: Snowflake, description: str, emoji: Optional[Union[PartialEmoji, Emoji, str]] = None
) -> None:
self.channel = channel
self.description = description
self.emoji = emoji
@ -120,7 +122,7 @@ class WelcomeScreen:
The channels shown on the welcome screen.
"""
def __init__(self, *, data: WelcomeScreenPayload, guild: Guild):
def __init__(self, *, data: WelcomeScreenPayload, guild: Guild) -> None:
self._state = guild._state
self._guild = guild
self._store(data)