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
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 .user import User
from .enums import try_enum, ExpireBehaviour

2
discord/interactions.py

@ -25,7 +25,7 @@ DEALINGS IN THE SOFTWARE.
"""
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
from . import utils

2
discord/permissions.py

@ -24,7 +24,7 @@ DEALINGS IN THE SOFTWARE.
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
__all__ = (

2
discord/reaction.py

@ -23,7 +23,7 @@ DEALINGS IN THE SOFTWARE.
"""
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

1
discord/state.py

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

2
discord/template.py

@ -25,7 +25,7 @@ DEALINGS IN THE SOFTWARE.
from __future__ import annotations
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
# fmt: off

2
discord/types/gateway.py

@ -33,7 +33,7 @@ from .channel import ChannelType, StageInstance
from .interactions import Interaction
from .invite import InviteTargetType
from .emoji import Emoji, PartialEmoji
from .member import Member, MemberWithUser
from .member import MemberWithUser
from .snowflake import Snowflake
from .message import Message
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 .channel import ChannelType, ChannelTypeWithoutThread, ThreadMetadata
from .channel import ChannelTypeWithoutThread, ThreadMetadata
from .threads import ThreadType
from .member import Member
from .message import Attachment

2
discord/ui/select.py

@ -23,7 +23,7 @@ DEALINGS IN THE SOFTWARE.
"""
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 os

1
discord/ui/view.py

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

1
discord/utils.py

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

3
discord/widget.py

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

Loading…
Cancel
Save