Skip to content

Commit 2303971

Browse files
author
Predeactor
committed
fix: incorrect PathLike corrected
Signed-off-by: Predeactor <predeactor0@gmail.com>
1 parent 4236b29 commit 2303971

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040

4141

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

4848
if TYPE_CHECKING:
4949
from git.repo import Repo

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy