From 4b268f07060e489ed85af36862058293df9f47af Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 5 Nov 2023 23:51:34 +0800 Subject: [PATCH] Fix Typing in TraceFormatter --- lib_not_dr/logger/structure.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib_not_dr/logger/structure.py b/lib_not_dr/logger/structure.py index 5b3309d..b8ee936 100644 --- a/lib_not_dr/logger/structure.py +++ b/lib_not_dr/logger/structure.py @@ -6,8 +6,9 @@ import time +from pathlib import Path from types import FrameType -from typing import List, Optional, Tuple, Dict +from typing import List, Optional, Tuple, Dict, Union from lib_not_dr.types.options import Options @@ -92,7 +93,7 @@ class LogMessage(Options): return int(self.log_time / 1000000) % 1000 -FormattingMessage = Tuple[LogMessage, Dict[str, str]] +FormattingMessage = Tuple[LogMessage, Dict[str, Union[str, Path]]] if __name__ == '__main__': print(LogMessage().as_markdown())