File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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
110from os import PathLike
211from typing import TypeAlias , Union
312
4- # via github.com/python/typeshed/blob/5df8de7/stdlib/_typeshed/__init__.pyi#L115-L118
5-
6- #: :class:`os.PathLike` or :func:`str`
713StrPath : 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+
916StrOrBytesPath : 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