We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa3d956 commit d84dcbaCopy full SHA for d84dcba
1 file changed
libvcs/types.py
@@ -1,9 +1,9 @@
1
from os import PathLike
2
-from typing import Union
+from typing import TypeAlias, Union
3
4
# via github.com/python/typeshed/blob/5df8de7/stdlib/_typeshed/__init__.pyi#L115-L118
5
6
#: :class:`os.PathLike` or :func:`str`
7
-StrPath = Union[str, PathLike[str]] # stable
+StrPath: TypeAlias = Union[str, PathLike[str]] # stable
8
#: :class:`os.PathLike`, :func:`str` or :term:`bytes-like object`
9
-StrOrBytesPath = Union[str, bytes, PathLike[str], PathLike[bytes]] # stable
+StrOrBytesPath: TypeAlias = Union[str, bytes, PathLike[str], PathLike[bytes]] # stable
0 commit comments