From 2303971c73f4ceda1d2d50e55a7c9d99864b883e Mon Sep 17 00:00:00 2001 From: Predeactor Date: Sun, 7 Aug 2022 18:32:57 +0200 Subject: fix: incorrect PathLike corrected Signed-off-by: Predeactor --- git/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git') 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 -- cgit v1.2.1