mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Fix some mypy errors
This commit is contained in:
@ -1,25 +1,8 @@
|
||||
import logging
|
||||
|
||||
from .ffm import *
|
||||
from .ilias import *
|
||||
from .norbert import *
|
||||
from .tgi import *
|
||||
from .tgi_jimbo import *
|
||||
from .ti import *
|
||||
from .os_exams import *
|
||||
from .utils import *
|
||||
|
||||
__all__ = ["STYLE", "FORMAT", "DATE_FORMAT", "FORMATTER", "enable_logging"]
|
||||
|
||||
__all__ += ffm.__all__
|
||||
__all__ += ilias.__all__
|
||||
__all__ += norbert.__all__
|
||||
__all__ += tgi.__all__
|
||||
__all__ += tgi_jimbo.__all__
|
||||
__all__ += ti.__all__
|
||||
__all__ += utils.__all__
|
||||
__all__ += os_exams.__all__
|
||||
|
||||
STYLE = "{"
|
||||
FORMAT = "[{levelname:<7}] {message}"
|
||||
DATE_FORMAT = "%F %T"
|
||||
@ -30,7 +13,7 @@ FORMATTER = logging.Formatter(
|
||||
style=STYLE,
|
||||
)
|
||||
|
||||
def enable_logging(name="PFERD", level=logging.INFO):
|
||||
def enable_logging(name: str = "PFERD", level: int = logging.INFO) -> None:
|
||||
handler = logging.StreamHandler()
|
||||
handler.setFormatter(FORMATTER)
|
||||
|
||||
|
Reference in New Issue
Block a user