Fix Typing in TraceFormatter

This commit is contained in:
shenjack 2023-11-05 23:51:34 +08:00
parent 0efdbf36b1
commit 4b268f0706
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -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())