We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
typing.TypeAliasType
1 parent a0f8e75 commit 5a97feaCopy full SHA for 5a97fea
discord/commands/options.py
@@ -26,18 +26,23 @@
26
27
import inspect
28
import logging
29
+import sys
30
import types
31
from enum import Enum
32
from typing import (
33
TYPE_CHECKING,
34
Literal,
35
Optional,
36
Type,
- TypeAliasType,
37
Union,
38
get_args,
39
)
40
41
+if sys.version_info >= (3, 12):
42
+ from typing import TypeAliasType
43
+else:
44
+ from typing_extensions import TypeAliasType
45
+
46
from ..abc import GuildChannel, Mentionable
47
from ..channel import (
48
CategoryChannel,
0 commit comments