mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 17:36:15 +00:00
Add return type hint for some functions
This commit is contained in:
@ -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