diff options
author | 2022-06-26 21:42:07 +0400 | |
---|---|---|
committer | 2022-06-26 21:42:07 +0400 | |
commit | 5efb69b2070ee972dd58401c06c0313513593a38 (patch) | |
tree | e26309ae1a620353c3d52fe67cb92fac4a4f3225 /botcore/utils/members.py | |
parent | Document Create Task Return Type (diff) |
Replace Typing Generics
Replaces all typing generics with collection equivalents as per PEP 585.
`typing.Callable` was not included in this due to a sphinx-autodoc bug
not handling it well.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'botcore/utils/members.py')
-rw-r--r-- | botcore/utils/members.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/botcore/utils/members.py b/botcore/utils/members.py index 10513953..1536a8d1 100644 --- a/botcore/utils/members.py +++ b/botcore/utils/members.py @@ -1,5 +1,6 @@ """Useful helper functions for interactin with :obj:`discord.Member` objects.""" import typing +from collections import abc import discord @@ -29,7 +30,7 @@ async def get_or_fetch_member(guild: discord.Guild, member_id: int) -> typing.Op async def handle_role_change( member: discord.Member, - coro: typing.Callable[[discord.Role], typing.Coroutine], + coro: typing.Callable[[discord.Role], abc.Coroutine], role: discord.Role ) -> None: """ |