Type-Hinted logging.getLogger

This commit is contained in:
Sengolda 2021-10-14 02:12:59 +05:30
parent e0bf2f9121
commit 2e1c573b9f
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ __all__ = ("Client",)
Coro = TypeVar("Coro", bound=Callable[..., Coroutine[Any, Any, Any]])
_log = logging.getLogger(__name__)
_log: logging.Logger = logging.getLogger(__name__)
def _cancel_tasks(loop: asyncio.AbstractEventLoop) -> None:

View File

@ -61,7 +61,7 @@ from .gateway import DiscordClientWebSocketResponse
from . import __version__, utils
from .utils import MISSING
_log = logging.getLogger(__name__)
_log: logging.Logger = logging.getLogger(__name__)
if TYPE_CHECKING:
from .file import File