aboutsummaryrefslogtreecommitdiff
path: root/src/Logging.py
diff options
context:
space:
mode:
authorGravatar Valentin Lorentz2019-10-26 00:32:00 +0200
committerGravatar Valentin Lorentz2019-10-30 22:26:59 +0100
commitfbf8cd1a167966d31717f4fc1fec1418910ad0f4 (patch)
tree07284824baa45a7ce0a79f64b9ba81f7e83d7793 /src/Logging.py
parentfix _line() related type hinting issues in IRCServer.py (diff)
signature
Fix type errors detected by 'mypy --ignore-missing-imports src'.
Diffstat (limited to 'src/Logging.py')
-rw-r--r--src/Logging.py2
1 files changed, 2 insertions, 0 deletions
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 = []