mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add return type hint for some functions
This commit is contained in:
1 parent
e0341c9ef2
commit
20d3871290
6 files changed
+17
-15
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user