mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 16:03:10 +00:00
Replace invariant container types with wider types where applicable
This commit is contained in:
@@ -32,6 +32,7 @@ from os import PathLike
|
||||
from typing import (
|
||||
Dict,
|
||||
TYPE_CHECKING,
|
||||
Sequence,
|
||||
Union,
|
||||
List,
|
||||
Optional,
|
||||
@@ -1195,7 +1196,7 @@ class Message(Hashable):
|
||||
*,
|
||||
content: Optional[str] = ...,
|
||||
embed: Optional[Embed] = ...,
|
||||
attachments: List[Union[Attachment, File]] = ...,
|
||||
attachments: Sequence[Union[Attachment, File]] = ...,
|
||||
suppress: bool = ...,
|
||||
delete_after: Optional[float] = ...,
|
||||
allowed_mentions: Optional[AllowedMentions] = ...,
|
||||
@@ -1208,8 +1209,8 @@ class Message(Hashable):
|
||||
self,
|
||||
*,
|
||||
content: Optional[str] = ...,
|
||||
embeds: List[Embed] = ...,
|
||||
attachments: List[Union[Attachment, File]] = ...,
|
||||
embeds: Sequence[Embed] = ...,
|
||||
attachments: Sequence[Union[Attachment, File]] = ...,
|
||||
suppress: bool = ...,
|
||||
delete_after: Optional[float] = ...,
|
||||
allowed_mentions: Optional[AllowedMentions] = ...,
|
||||
@@ -1221,8 +1222,8 @@ class Message(Hashable):
|
||||
self,
|
||||
content: Optional[str] = MISSING,
|
||||
embed: Optional[Embed] = MISSING,
|
||||
embeds: List[Embed] = MISSING,
|
||||
attachments: List[Union[Attachment, File]] = MISSING,
|
||||
embeds: Sequence[Embed] = MISSING,
|
||||
attachments: Sequence[Union[Attachment, File]] = MISSING,
|
||||
suppress: bool = MISSING,
|
||||
delete_after: Optional[float] = None,
|
||||
allowed_mentions: Optional[AllowedMentions] = MISSING,
|
||||
|
Reference in New Issue
Block a user