diff options
author | Devaev Maxim <[email protected]> | 2020-05-11 08:06:44 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-05-11 08:06:44 +0300 |
commit | 98a176f7408350741f89547ea6d1d6e519965cbf (patch) | |
tree | 872a8f1c288975c118e0384e44973c944ea5b1f2 /kvmd/logging.py | |
parent | 60b6c219d91addfd79a30cfa9c20b398eb3391ae (diff) |
lint fixes
Diffstat (limited to 'kvmd/logging.py')
-rw-r--r-- | kvmd/logging.py | 6 |
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) |