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
+1
-1
@@ -198,7 +198,7 @@ class StickerItem(_StickerTag):
|
||||
|
||||
__slots__ = ('_state', 'name', 'id', 'format', 'url')
|
||||
|
||||
def __init__(self, *, state: ConnectionState, data: StickerItemPayload):
|
||||
def __init__(self, *, state: ConnectionState, data: StickerItemPayload) -> None:
|
||||
self._state: ConnectionState = state
|
||||
self.name: str = data['name']
|
||||
self.id: int = int(data['id'])
|
||||
|
||||
Reference in new issue
Block a user