mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
new typing style
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user