We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 996582a commit fa3d956Copy full SHA for fa3d956
1 file changed
libvcs/types.py
@@ -1,12 +1,9 @@
1
from os import PathLike
2
from typing import Union
3
4
-# See also, if this type is baked in in typing in the future
5
-# - https://stackoverflow.com/q/53418046/1396928
6
-# - https://github.com/python/typeshed/issues/5912
7
-# PathLike = TypeVar("PathLike", str, pathlib.Path)
8
-# OptionalPathLike = TypeVar("OptionalPathLike", str, pathlib.Path, None)
+# via github.com/python/typeshed/blob/5df8de7/stdlib/_typeshed/__init__.pyi#L115-L118
9
10
-
11
-StrOrBytesPath = Union[str, bytes, PathLike[str], PathLike[bytes]] # stable
+#: :class:`os.PathLike` or :func:`str`
12
StrPath = Union[str, PathLike[str]] # stable
+#: :class:`os.PathLike`, :func:`str` or :term:`bytes-like object`
+StrOrBytesPath = Union[str, bytes, PathLike[str], PathLike[bytes]] # stable
0 commit comments