summaryrefslogtreecommitdiff
path: root/kvmd/logging.py
diff options
context:
space:
mode:
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: