From fcf91661fc1ab9437f8bf7cc6899a9021eb3963e Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 29 Jan 2021 12:58:03 +0100 Subject: [PATCH] Fix User._parse_status type hints --- pyrogram/types/user_and_chats/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/types/user_and_chats/user.py b/pyrogram/types/user_and_chats/user.py index 7b495450..cc0c2036 100644 --- a/pyrogram/types/user_and_chats/user.py +++ b/pyrogram/types/user_and_chats/user.py @@ -235,7 +235,7 @@ class User(Object, Update): ) @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): status, date = "online", user_status.expires elif isinstance(user_status, raw.types.UserStatusOffline):