mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Use Unpack where it's possible
This commit is contained in:
@ -77,7 +77,7 @@ __all__ = (
|
||||
T = TypeVar('T', bound=VoiceProtocol)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing_extensions import Self
|
||||
from typing_extensions import Self, Unpack
|
||||
|
||||
from .client import Client
|
||||
from .user import ClientUser
|
||||
@ -112,6 +112,7 @@ if TYPE_CHECKING:
|
||||
from .types.snowflake import (
|
||||
SnowflakeList,
|
||||
)
|
||||
from .permissions import _PermissionOverwriteKwargs
|
||||
|
||||
PartialMessageableChannel = Union[TextChannel, VoiceChannel, StageChannel, Thread, DMChannel, PartialMessageable]
|
||||
MessageableChannel = Union[PartialMessageableChannel, GroupChannel]
|
||||
@ -915,7 +916,7 @@ class GuildChannel:
|
||||
target: Union[Member, Role],
|
||||
*,
|
||||
reason: Optional[str] = ...,
|
||||
**permissions: Optional[bool],
|
||||
**permissions: Unpack[_PermissionOverwriteKwargs],
|
||||
) -> None:
|
||||
...
|
||||
|
||||
@ -925,7 +926,7 @@ class GuildChannel:
|
||||
*,
|
||||
overwrite: Any = _undefined,
|
||||
reason: Optional[str] = None,
|
||||
**permissions: Optional[bool],
|
||||
**permissions: Unpack[_PermissionOverwriteKwargs],
|
||||
) -> None:
|
||||
r"""|coro|
|
||||
|
||||
|
Reference in New Issue
Block a user