Browse Source

Remove unused imports

pull/7513/head
Rapptz 3 years ago
parent
commit
4c8b1f9abd
  1. 2
      discord/integrations.py
  2. 2
      discord/interactions.py
  3. 2
      discord/permissions.py
  4. 2
      discord/reaction.py
  5. 1
      discord/state.py
  6. 2
      discord/template.py
  7. 2
      discord/types/gateway.py
  8. 2
      discord/types/interactions.py
  9. 2
      discord/ui/select.py
  10. 1
      discord/ui/view.py
  11. 1
      discord/utils.py
  12. 3
      discord/widget.py

2
discord/integrations.py

@ -25,7 +25,7 @@ DEALINGS IN THE SOFTWARE.
from __future__ import annotations from __future__ import annotations
import datetime import datetime
from typing import Any, Dict, Optional, TYPE_CHECKING, overload, Type, Tuple from typing import Any, Dict, Optional, TYPE_CHECKING, Type, Tuple
from .utils import _get_as_snowflake, parse_time, MISSING from .utils import _get_as_snowflake, parse_time, MISSING
from .user import User from .user import User
from .enums import try_enum, ExpireBehaviour from .enums import try_enum, ExpireBehaviour

2
discord/interactions.py

@ -25,7 +25,7 @@ DEALINGS IN THE SOFTWARE.
""" """
from __future__ import annotations from __future__ import annotations
from typing import Any, Dict, Generic, List, Optional, TYPE_CHECKING, Tuple, TypeVar, Union from typing import Any, Dict, List, Optional, TYPE_CHECKING, Tuple, Union
import asyncio import asyncio
from . import utils from . import utils

2
discord/permissions.py

@ -24,7 +24,7 @@ DEALINGS IN THE SOFTWARE.
from __future__ import annotations from __future__ import annotations
from typing import Callable, Any, ClassVar, Dict, Iterator, Set, TYPE_CHECKING, Tuple, Type, TypeVar, Optional from typing import Callable, Any, ClassVar, Dict, Iterator, Set, TYPE_CHECKING, Tuple, Optional
from .flags import BaseFlags, flag_value, fill_with_flags, alias_flag_value from .flags import BaseFlags, flag_value, fill_with_flags, alias_flag_value
__all__ = ( __all__ = (

2
discord/reaction.py

@ -23,7 +23,7 @@ DEALINGS IN THE SOFTWARE.
""" """
from __future__ import annotations from __future__ import annotations
from typing import Any, TYPE_CHECKING, AsyncIterator, List, Union, Optional from typing import Any, TYPE_CHECKING, AsyncIterator, Union, Optional
from .object import Object from .object import Object

1
discord/state.py

@ -32,7 +32,6 @@ import itertools
import logging import logging
from typing import ( from typing import (
Dict, Dict,
Generic,
Optional, Optional,
TYPE_CHECKING, TYPE_CHECKING,
Union, Union,

2
discord/template.py

@ -25,7 +25,7 @@ DEALINGS IN THE SOFTWARE.
from __future__ import annotations from __future__ import annotations
from typing import Any, Optional, TYPE_CHECKING from typing import Any, Optional, TYPE_CHECKING
from .utils import parse_time, _get_as_snowflake, _bytes_to_base64_data, MISSING from .utils import parse_time, _bytes_to_base64_data, MISSING
from .guild import Guild from .guild import Guild
# fmt: off # fmt: off

2
discord/types/gateway.py

@ -33,7 +33,7 @@ from .channel import ChannelType, StageInstance
from .interactions import Interaction from .interactions import Interaction
from .invite import InviteTargetType from .invite import InviteTargetType
from .emoji import Emoji, PartialEmoji from .emoji import Emoji, PartialEmoji
from .member import Member, MemberWithUser from .member import MemberWithUser
from .snowflake import Snowflake from .snowflake import Snowflake
from .message import Message from .message import Message
from .sticker import GuildSticker from .sticker import GuildSticker

2
discord/types/interactions.py

@ -27,7 +27,7 @@ from __future__ import annotations
from typing import TYPE_CHECKING, Dict, List, Literal, TypedDict, Union from typing import TYPE_CHECKING, Dict, List, Literal, TypedDict, Union
from .channel import ChannelType, ChannelTypeWithoutThread, ThreadMetadata from .channel import ChannelTypeWithoutThread, ThreadMetadata
from .threads import ThreadType from .threads import ThreadType
from .member import Member from .member import Member
from .message import Attachment from .message import Attachment

2
discord/ui/select.py

@ -23,7 +23,7 @@ DEALINGS IN THE SOFTWARE.
""" """
from __future__ import annotations from __future__ import annotations
from typing import List, Optional, TYPE_CHECKING, Tuple, TypeVar, Type, Callable, Union from typing import List, Optional, TYPE_CHECKING, Tuple, TypeVar, Callable, Union
import inspect import inspect
import os import os

1
discord/ui/view.py

@ -41,7 +41,6 @@ from ..components import (
Button as ButtonComponent, Button as ButtonComponent,
SelectMenu as SelectComponent, SelectMenu as SelectComponent,
) )
from ..utils import MISSING
# fmt: off # fmt: off
__all__ = ( __all__ = (

1
discord/utils.py

@ -25,7 +25,6 @@ from __future__ import annotations
import array import array
import asyncio import asyncio
import inspect
from typing import ( from typing import (
Any, Any,
AsyncIterable, AsyncIterable,

3
discord/widget.py

@ -23,13 +23,12 @@ DEALINGS IN THE SOFTWARE.
""" """
from __future__ import annotations from __future__ import annotations
from sqlite3 import connect
from typing import Any, List, Optional, TYPE_CHECKING, Union from typing import Any, List, Optional, TYPE_CHECKING, Union
from .utils import snowflake_time, _get_as_snowflake, resolve_invite from .utils import snowflake_time, _get_as_snowflake, resolve_invite
from .user import BaseUser from .user import BaseUser
from .activity import Activity, BaseActivity, Spotify, create_activity from .activity import BaseActivity, Spotify, create_activity
from .invite import Invite from .invite import Invite
from .enums import Status, try_enum from .enums import Status, try_enum

Loading…
Cancel
Save