mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-22 09:57:19 +00:00
Fix type hints
This commit is contained in:
parent
3e33ef0c0d
commit
394a9adc03
@ -17,7 +17,7 @@
|
||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import logging
|
||||
from typing import Union, List
|
||||
from typing import Union, Optional, AsyncGenerator
|
||||
|
||||
import pyrogram
|
||||
from pyrogram import raw, types, enums
|
||||
@ -64,7 +64,7 @@ class GetChatMembers:
|
||||
query: str = "",
|
||||
limit: int = 0,
|
||||
filter: "enums.ChatMembersFilter" = enums.ChatMembersFilter.SEARCH
|
||||
) -> List["types.ChatMember"]:
|
||||
) -> Optional[AsyncGenerator["types.ChatMember", None]]:
|
||||
"""Get the members list of a chat.
|
||||
|
||||
A chat can be either a basic group, a supergroup or a channel.
|
||||
|
Loading…
x
Reference in New Issue
Block a user