aboutsummaryrefslogtreecommitdiff
path: root/discord/abc.py
diff options
context:
space:
mode:
authorJosh <[email protected]>2021-05-13 10:24:28 +1000
committerGitHub <[email protected]>2021-05-12 20:24:28 -0400
commit5fa64e83e0ba8f3e49047d6914b4ecb24fb20ffc (patch)
tree7156b53549599e0b9660e4e2d6262028bd9a241e /discord/abc.py
parentAdd Template.url (diff)
downloaddiscord.py-5fa64e83e0ba8f3e49047d6914b4ecb24fb20ffc.tar.xz
discord.py-5fa64e83e0ba8f3e49047d6914b4ecb24fb20ffc.zip
Fix issues with imports causing NameErrors
Diffstat (limited to 'discord/abc.py')
-rw-r--r--discord/abc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/abc.py b/discord/abc.py
index a785e35d..5471b336 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -63,6 +63,8 @@ if TYPE_CHECKING:
from .embeds import Embed
from .message import Message, MessageReference
+ SnowflakeTime = Union["Snowflake", datetime]
+
MISSING = utils.MISSING
@@ -98,8 +100,6 @@ class Snowflake(Protocol):
""":class:`datetime.datetime`: Returns the model's creation time as an aware datetime in UTC."""
raise NotImplementedError
-SnowflakeTime = Union[Snowflake, datetime]
-
@runtime_checkable
class User(Snowflake, Protocol):
"""An ABC that details the common operations on a Discord user.