Fix issues with imports causing NameErrors

This commit is contained in:
Josh authored and GitHub committed 2021-05-12 20:24:28 -04:00
1 parent 124c4a3919
commit 5fa64e83e0
3 files changed
+10 -5

No files matched your search

+2 -2
View File
@@ -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.