File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change
1
+ """Internal :term:`type annotations <annotation>`
2
+
3
+ Notes
4
+ -----
5
+
6
+ :class:`StrPath` and :class:`StrOrBytesPath` is based on `typeshed's`_.
7
+
8
+ .. _typeshed's: https://github.com/python/typeshed/blob/5df8de7/stdlib/_typeshed/__init__.pyi#L115-L118
9
+ """ # NOQA E501
1
10
from os import PathLike
2
11
from typing import TypeAlias , Union
3
12
4
- # via github.com/python/typeshed/blob/5df8de7/stdlib/_typeshed/__init__.pyi#L115-L118
5
-
6
- #: :class:`os.PathLike` or :func:`str`
7
13
StrPath : TypeAlias = Union [str , PathLike [str ]] # stable
8
- #: :class:`os.PathLike`, :func:`str` or :term:`bytes-like object`
14
+ """:class:`os.PathLike` or :class:`str`"""
15
+
9
16
StrOrBytesPath : TypeAlias = Union [str , bytes , PathLike [str ], PathLike [bytes ]] # stable
17
+ """:class:`os.PathLike`, :class:`str` or :term:`bytes-like object`"""
You can’t perform that action at this time.
0 commit comments