From 4236b290ddc2eb224f9ff834a21b373015aad782 Mon Sep 17 00:00:00 2001 From: Predeactor Date: Sun, 7 Aug 2022 18:31:03 +0200 Subject: fix: remove bytes type of PathLike Signed-off-by: Predeactor --- git/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/types.py b/git/types.py index adda514d..da938c30 100644 --- a/git/types.py +++ b/git/types.py @@ -40,7 +40,7 @@ else: if sys.version_info[:2] < (3, 9): - PathLike = Union[str, bytes, os.PathLike] + PathLike = Union[str, os.PathLike[str]] else: # os.PathLike only becomes subscriptable from Python 3.9 onwards PathLike = Union[str, bytes, os.PathLike[str], os.PathLike[bytes]] -- cgit v1.2.1