mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
* drop Python 3.8 Note that this PR only makes typing related changes. Other changes can be done once this gets merged, they are relatively few in numbers. * bump build python version * add typing_extensions to lint group
13 lines
366 B
Python
13 lines
366 B
Python
from typing import TYPE_CHECKING, Any, AnyStr, Union
|
|
|
|
if TYPE_CHECKING:
|
|
from os import PathLike
|
|
|
|
StrPath = Union[str, "PathLike[str]"]
|
|
BytesPath = Union[bytes, "PathLike[bytes]"]
|
|
GenericPath = Union[AnyStr, "PathLike[AnyStr]"]
|
|
StrOrBytesPath = Union[str, bytes, "PathLike[str]", "PathLike[bytes]"]
|
|
|
|
TargetType = Union[list[str], str]
|
|
DictStrAny = dict[str, Any]
|