summaryrefslogtreecommitdiff
path: root/kvmd/logging.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-05-11 08:06:44 +0300
committerDevaev Maxim <[email protected]>2020-05-11 08:06:44 +0300
commit98a176f7408350741f89547ea6d1d6e519965cbf (patch)
tree872a8f1c288975c118e0384e44973c944ea5b1f2 /kvmd/logging.py
parent60b6c219d91addfd79a30cfa9c20b398eb3391ae (diff)
lint fixes
Diffstat (limited to 'kvmd/logging.py')
-rw-r--r--kvmd/logging.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/kvmd/logging.py b/kvmd/logging.py
index e012e8f9..894f12af 100644
--- a/kvmd/logging.py
+++ b/kvmd/logging.py
@@ -21,12 +21,16 @@
import sys
+import types
import logging
+from typing import Optional
+
# =====
def get_logger(depth: int=1) -> logging.Logger:
- frame = sys._getframe(1) # pylint: disable=protected-access
+ frame: Optional[types.FrameType] = sys._getframe(1) # pylint: disable=protected-access
+ assert frame
frames = []
while frame:
frames.append(frame)