summaryrefslogtreecommitdiff
path: root/kvmd/logging.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-09-04 18:08:40 +0300
committerMaxim Devaev <[email protected]>2022-09-04 18:08:40 +0300
commitee3e224e396494cd0d69bb6167087a071a20349c (patch)
tree5becd28570e58a03c6e1e231d0db24c264a73f88 /kvmd/logging.py
parent4b75221e9470b4a009955d7677f16adf8e23e302 (diff)
new typing style
Diffstat (limited to 'kvmd/logging.py')
-rw-r--r--kvmd/logging.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/kvmd/logging.py b/kvmd/logging.py
index e1a75bc3..c4dadbfd 100644
--- a/kvmd/logging.py
+++ b/kvmd/logging.py
@@ -24,12 +24,10 @@ import sys
import types
import logging
-from typing import Optional
-
# =====
def get_logger(depth: int=1) -> logging.Logger:
- frame: Optional[types.FrameType] = sys._getframe(1) # pylint: disable=protected-access
+ frame: (types.FrameType | None) = sys._getframe(1) # pylint: disable=protected-access
assert frame
frames = []
while frame: