From fbf8cd1a167966d31717f4fc1fec1418910ad0f4 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 26 Oct 2019 00:32:00 +0200 Subject: Fix type errors detected by 'mypy --ignore-missing-imports src'. --- src/Logging.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Logging.py') diff --git a/src/Logging.py b/src/Logging.py index a1cdb123..e883540a 100644 --- a/src/Logging.py +++ b/src/Logging.py @@ -24,6 +24,8 @@ class HookedHandler(logging.StreamHandler): self._func(record.levelno, self.format(record)) class Log(object): + _hooks: typing.List[typing.Callable[[int, str], None]] + def __init__(self, to_file: bool, level: str, location: str): self._hooks = [] -- cgit v1.3.1-10-gc9f91