mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-16 14:13:13 +00:00
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:
parent
f7a79ff8d7
commit
52e16573f5
@ -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 *
|
||||
|
@ -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
|
||||
|
@ -42,6 +42,7 @@ exclude = [
|
||||
"docs",
|
||||
]
|
||||
reportUnnecessaryTypeIgnoreComment = "warning"
|
||||
reportUnusedImport = "error"
|
||||
pythonVersion = "3.8"
|
||||
typeCheckingMode = "basic"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user