diff --git a/discord/__init__.py b/discord/__init__.py index 46fdb6842..87174fe15 100644 --- a/discord/__init__.py +++ b/discord/__init__.py @@ -43,7 +43,13 @@ from .template import * from .widget import * from .object import * from .reaction import * -from . import utils, opus, abc, ui, app_commands +from . import ( + utils as utils, + opus as opus, + abc as abc, + ui as ui, + app_commands as app_commands, +) from .enums import * from .embeds import * from .mentions import * diff --git a/discord/threads.py b/discord/threads.py index d1b3cc3e0..006f3c3b5 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -26,8 +26,6 @@ from __future__ import annotations from typing import Callable, Dict, Iterable, List, Optional, Union, TYPE_CHECKING from datetime import datetime -import time -import asyncio from .mixins import Hashable from .abc import Messageable, _purge_helper diff --git a/pyproject.toml b/pyproject.toml index f06653a40..559b24b4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ exclude = [ "docs", ] reportUnnecessaryTypeIgnoreComment = "warning" +reportUnusedImport = "error" pythonVersion = "3.8" typeCheckingMode = "basic"