diff options
| author | Rapptz <[email protected]> | 2021-04-07 05:50:54 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-04-07 05:50:54 -0400 |
| commit | f49d565d5130c1de687f1f315686e81d4a71ca4a (patch) | |
| tree | 5f6620a21c56604d77b25d2f0ec3df2d033b3576 /discord | |
| parent | Typehint discord.Embed and introduce discord.types subpackage (diff) | |
| download | discord.py-f49d565d5130c1de687f1f315686e81d4a71ca4a.tar.xz discord.py-f49d565d5130c1de687f1f315686e81d4a71ca4a.zip | |
Rename discord.types file based on relevant core module file
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/embeds.py | 2 | ||||
| -rw-r--r-- | discord/types/embed.py (renamed from discord/types/common.py) | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/discord/embeds.py b/discord/embeds.py index c44d8b9e..d08c9874 100644 --- a/discord/embeds.py +++ b/discord/embeds.py @@ -67,7 +67,7 @@ class EmbedProxy: E = TypeVar('E', bound='Embed') if TYPE_CHECKING: - from discord.types.common import Embed as EmbedData, EmbedType + from discord.types.embed import Embed as EmbedData, EmbedType T = TypeVar('T') MaybeEmpty = Union[T, _EmptyEmbed] diff --git a/discord/types/common.py b/discord/types/embed.py index 4b4a3e8f..b38c9314 100644 --- a/discord/types/common.py +++ b/discord/types/embed.py @@ -22,8 +22,6 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -# This file provides typings for shared entities between the Gateway and HTTP API - from typing import List, Literal, TypedDict class _EmbedFooterOptional(TypedDict, total=False): |