2022-09-08 01:08:37 +00:00
|
|
|
from pathlib import Path
|
|
|
|
from types import TracebackType
|
2022-09-10 14:46:08 +00:00
|
|
|
from typing import Optional, Tuple, Type, Union, Dict, Any
|
2022-09-08 01:08:37 +00:00
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
'StrOrPath',
|
2022-09-10 14:46:08 +00:00
|
|
|
'SysExcInfoType', 'ExceptionInfoType',
|
2022-09-08 01:08:37 +00:00
|
|
|
'JSONDict',
|
|
|
|
]
|
|
|
|
|
|
|
|
StrOrPath = Union[str, Path]
|
2022-09-10 14:46:08 +00:00
|
|
|
SysExcInfoType = Union[
|
|
|
|
Tuple[Type[BaseException], BaseException, Optional[TracebackType]],
|
|
|
|
Tuple[None, None, None]
|
|
|
|
]
|
|
|
|
ExceptionInfoType = Union[bool, SysExcInfoType, BaseException]
|
2022-09-08 01:08:37 +00:00
|
|
|
JSONDict = Dict[str, Any]
|