mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 04:45:27 +00:00
4c702515a0
Co-authored-by: xtaodada <xtao@xtaolink.cn>
24 lines
598 B
Python
24 lines
598 B
Python
from pathlib import Path
|
|
from types import TracebackType
|
|
from typing import Any, Dict, Optional, Tuple, Type, Union
|
|
|
|
from httpx import URL
|
|
|
|
__all__ = [
|
|
'StrOrPath', 'StrOrURL', 'StrOrInt',
|
|
'SysExcInfoType', 'ExceptionInfoType',
|
|
'JSONDict', 'JSONType'
|
|
]
|
|
|
|
StrOrPath = Union[str, Path]
|
|
StrOrURL = Union[str, URL]
|
|
StrOrInt = Union[str, int]
|
|
|
|
SysExcInfoType = Union[
|
|
Tuple[Type[BaseException], BaseException, Optional[TracebackType]],
|
|
Tuple[None, None, None]
|
|
]
|
|
ExceptionInfoType = Union[bool, SysExcInfoType, BaseException]
|
|
JSONDict = Dict[str, Any]
|
|
JSONType = Union[JSONDict, list]
|