mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Fix User._parse_status type hints
This commit is contained in:
parent
57128c0ab7
commit
fcf91661fc
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ class User(Object, Update):
|
||||||
)
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _parse_status(user_status: "raw.types.UpdateUserStatus", is_bot: bool = False):
|
def _parse_status(user_status: "raw.base.UserStatus", is_bot: bool = False):
|
||||||
if isinstance(user_status, raw.types.UserStatusOnline):
|
if isinstance(user_status, raw.types.UserStatusOnline):
|
||||||
status, date = "online", user_status.expires
|
status, date = "online", user_status.expires
|
||||||
elif isinstance(user_status, raw.types.UserStatusOffline):
|
elif isinstance(user_status, raw.types.UserStatusOffline):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue