aboutsummaryrefslogtreecommitdiff
path: root/src/Logging.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-10-31 13:03:19 +0000
committerGravatar GitHub2019-10-31 13:03:19 +0000
commitdde0dcc37ba592766be1ea9fa60bf5503a57cf12 (patch)
treeddf3bb032e51b98c5953c3535a476d3a7d8ab2ac /src/Logging.py
parentuse utils.parse.line_normalise in title.py (diff)
parentFix type errors detected by 'mypy --ignore-missing-imports src'. (diff)
Merge pull request #191 from ProgVal/mypy
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 = []