Skip to content

Commit d84dcba

Browse files
committed
chore(types): Add TypeAlias
1 parent fa3d956 commit d84dcba

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libvcs/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from os import PathLike
2-
from typing import Union
2+
from typing import TypeAlias, Union
33

44
# via github.com/python/typeshed/blob/5df8de7/stdlib/_typeshed/__init__.pyi#L115-L118
55

66
#: :class:`os.PathLike` or :func:`str`
7-
StrPath = Union[str, PathLike[str]] # stable
7+
StrPath: TypeAlias = Union[str, PathLike[str]] # stable
88
#: :class:`os.PathLike`, :func:`str` or :term:`bytes-like object`
9-
StrOrBytesPath = Union[str, bytes, PathLike[str], PathLike[bytes]] # stable
9+
StrOrBytesPath: TypeAlias = Union[str, bytes, PathLike[str], PathLike[bytes]] # stable

0 commit comments

Comments
 (0)