Replace invariant container types with wider types where applicable

This commit is contained in:
Josh authored and GitHub committed 2022-03-17 07:26:01 -04:00
1 parent 3e77a7b29e
commit e01d4a31eb
9 files changed
+88 -83

No files matched your search

+2 -2
View File
@@ -28,7 +28,7 @@ import datetime
import inspect
import itertools
from operator import attrgetter
from typing import Any, Callable, Coroutine, Dict, List, Literal, Optional, TYPE_CHECKING, Tuple, Union, Type
from typing import Any, Callable, Collection, Coroutine, Dict, List, Literal, Optional, TYPE_CHECKING, Tuple, Union, Type
import discord.abc
@@ -720,7 +720,7 @@ class Member(discord.abc.Messageable, _UserTag):
mute: bool = MISSING,
deafen: bool = MISSING,
suppress: bool = MISSING,
roles: List[discord.abc.Snowflake] = MISSING,
roles: Collection[discord.abc.Snowflake] = MISSING,
voice_channel: Optional[VocalGuildChannel] = MISSING,
timed_out_until: Optional[datetime.datetime] = MISSING,
reason: Optional[str] = None,