mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-29 09:07:13 +00:00
21 lines
514 B
Python
21 lines
514 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',
|
|
'SysExcInfoType', 'ExceptionInfoType',
|
|
'JSONDict',
|
|
]
|
|
|
|
StrOrPath = Union[str, Path]
|
|
StrOrURL = Union[str, URL]
|
|
SysExcInfoType = Union[
|
|
Tuple[Type[BaseException], BaseException, Optional[TracebackType]],
|
|
Tuple[None, None, None]
|
|
]
|
|
ExceptionInfoType = Union[bool, SysExcInfoType, BaseException]
|
|
JSONDict = Dict[str, Any]
|