Fix User._parse_status type hints

This commit is contained in:
Dan 2021-01-29 12:58:03 +01:00
parent 57128c0ab7
commit fcf91661fc

View File

@ -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):