summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPredeactor <predeactor0@gmail.com>2022-08-07 18:32:57 +0200
committerPredeactor <predeactor0@gmail.com>2022-08-07 18:32:57 +0200
commit2303971c73f4ceda1d2d50e55a7c9d99864b883e (patch)
treead62ac4085fe9ebf77c037b3e1e951e89751faad
parent4236b290ddc2eb224f9ff834a21b373015aad782 (diff)
downloadgitpython-2303971c73f4ceda1d2d50e55a7c9d99864b883e.tar.gz
fix: incorrect PathLike corrected
Signed-off-by: Predeactor <predeactor0@gmail.com>
-rw-r--r--git/types.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/types.py b/git/types.py
index da938c30..9064ecbf 100644
--- a/git/types.py
+++ b/git/types.py
@@ -40,10 +40,10 @@ else:
if sys.version_info[:2] < (3, 9):
- PathLike = Union[str, os.PathLike[str]]
+ PathLike = Union[str, os.PathLike]
else:
# os.PathLike only becomes subscriptable from Python 3.9 onwards
- PathLike = Union[str, bytes, os.PathLike[str], os.PathLike[bytes]]
+ PathLike = Union[str, os.PathLike[str]]
if TYPE_CHECKING:
from git.repo import Repo