Skip to content

Commit 4236b29

Browse files
author
Predeactor
committed
fix: remove bytes type of PathLike
Signed-off-by: Predeactor <predeactor0@gmail.com>
1 parent e176e54 commit 4236b29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141

4242
if sys.version_info[:2] < (3, 9):
43-
PathLike = Union[str, bytes, os.PathLike]
43+
PathLike = Union[str, os.PathLike[str]]
4444
else:
4545
# os.PathLike only becomes subscriptable from Python 3.9 onwards
4646
PathLike = Union[str, bytes, os.PathLike[str], os.PathLike[bytes]]

0 commit comments

Comments
 (0)