Remove unused imports and make exports explicit

This allows Pyright to actually catch these errors, which would be
useful for CI purposes in the future.
This commit is contained in:
Rapptz 2022-04-02 11:38:39 -04:00
parent f7a79ff8d7
commit 52e16573f5
3 changed files with 8 additions and 3 deletions

View File

@ -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 *

View File

@ -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

View File

@ -42,6 +42,7 @@ exclude = [
"docs",
]
reportUnnecessaryTypeIgnoreComment = "warning"
reportUnusedImport = "error"
pythonVersion = "3.8"
typeCheckingMode = "basic"