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

@ -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'])