diff options
author | Predeactor <predeactor0@gmail.com> | 2022-08-07 18:32:57 +0200 |
---|---|---|
committer | Predeactor <predeactor0@gmail.com> | 2022-08-07 18:32:57 +0200 |
commit | 2303971c73f4ceda1d2d50e55a7c9d99864b883e (patch) | |
tree | ad62ac4085fe9ebf77c037b3e1e951e89751faad | |
parent | 4236b290ddc2eb224f9ff834a21b373015aad782 (diff) | |
download | gitpython-2303971c73f4ceda1d2d50e55a7c9d99864b883e.tar.gz |
fix: incorrect PathLike corrected
Signed-off-by: Predeactor <predeactor0@gmail.com>
-rw-r--r-- | git/types.py | 4 |
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 |