mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-30 17:15:08 +08:00
🏷️ add type hint for logger
This commit is contained in:
parent
100f560558
commit
61512ff01f
@ -14,10 +14,10 @@ import sys
|
|||||||
import logging
|
import logging
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
from loguru import logger as logger_
|
import loguru
|
||||||
|
|
||||||
# logger = logging.getLogger("nonebot")
|
# logger = logging.getLogger("nonebot")
|
||||||
logger = logger_
|
logger: "loguru.Logger" = loguru.logger
|
||||||
"""
|
"""
|
||||||
:说明:
|
:说明:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user