Replace invariant container types with wider types where applicable

This commit is contained in:
Josh
2022-03-17 21:26:01 +10:00
committed by GitHub
parent 3e77a7b29e
commit e01d4a31eb
9 changed files with 88 additions and 83 deletions

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,