Fix some mypy errors

This commit is contained in:
Joscha
2020-04-20 01:54:47 +00:00
parent 7d48972967
commit d5dd5aac06
2 changed files with 19 additions and 31 deletions

View File

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