From f49d565d5130c1de687f1f315686e81d4a71ca4a Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 7 Apr 2021 05:50:54 -0400 Subject: [PATCH] Rename discord.types file based on relevant core module file --- discord/embeds.py | 2 +- discord/types/{common.py => embed.py} | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) rename discord/types/{common.py => embed.py} (96%) diff --git a/discord/embeds.py b/discord/embeds.py index c44d8b9ec..d08c9874e 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 similarity index 96% rename from discord/types/common.py rename to discord/types/embed.py index 4b4a3e8fb..b38c9314c 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):