mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 02:39:01 +00:00
Fix NameError in GuildChannel.create_invite
Move InviteTarget out of type checking
This commit is contained in:
parent
3679b7c251
commit
9a5c7466d6
@ -48,7 +48,7 @@ from typing import (
|
|||||||
|
|
||||||
from .object import OLDEST_OBJECT, Object
|
from .object import OLDEST_OBJECT, Object
|
||||||
from .context_managers import Typing
|
from .context_managers import Typing
|
||||||
from .enums import ChannelType
|
from .enums import ChannelType, InviteTarget
|
||||||
from .errors import ClientException
|
from .errors import ClientException
|
||||||
from .mentions import AllowedMentions
|
from .mentions import AllowedMentions
|
||||||
from .permissions import PermissionOverwrite, Permissions
|
from .permissions import PermissionOverwrite, Permissions
|
||||||
@ -93,7 +93,6 @@ if TYPE_CHECKING:
|
|||||||
StageChannel,
|
StageChannel,
|
||||||
)
|
)
|
||||||
from .threads import Thread
|
from .threads import Thread
|
||||||
from .enums import InviteTarget
|
|
||||||
from .ui.view import View
|
from .ui.view import View
|
||||||
from .types.channel import (
|
from .types.channel import (
|
||||||
PermissionOverwrite as PermissionOverwritePayload,
|
PermissionOverwrite as PermissionOverwritePayload,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user