Skip to content

Commit

Permalink
Address Dan suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
alissonlauffer committed Dec 11, 2020
1 parent 75d9ab2 commit 696596f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyrogram/filters.py
Expand Up @@ -824,7 +824,7 @@ class user(Filter, set):
Defaults to None (no users).
"""

def __init__(self, users: Union[int, str, list] = None):
def __init__(self, users: Union[int, str, List[Union[int, str]]] = None):
users = [] if users is None else users if isinstance(users, list) else [users]

super().__init__(
Expand Down Expand Up @@ -856,7 +856,7 @@ class chat(Filter, set):
Defaults to None (no chats).
"""

def __init__(self, chats: Union[int, str, list] = None):
def __init__(self, chats: Union[int, str, List[Union[int, str]]] = None):
chats = [] if chats is None else chats if isinstance(chats, list) else [chats]

super().__init__(
Expand Down

0 comments on commit 696596f

Please sign in to comment.