forked from mirror/Archipelago
add typing
This commit is contained in:
2
Utils.py
2
Utils.py
@@ -482,7 +482,7 @@ def get_text_after(text: str, start: str) -> str:
|
||||
return text[text.index(start) + len(start):]
|
||||
|
||||
|
||||
loglevel_mapping = {name.lower(): level for name, level in logging.getLevelNamesMapping().items()}
|
||||
loglevel_mapping: dict[str, int] = {name.lower(): level for name, level in logging.getLevelNamesMapping().items()}
|
||||
|
||||
|
||||
def init_logging(name: str, loglevel: typing.Union[str, int] = logging.INFO, write_mode: str = "w",
|
||||
|
||||
Reference in New Issue
Block a user