diff options
author | Yobmod <yobmod@gmail.com> | 2021-08-09 10:08:42 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-08-09 10:08:42 +0100 |
commit | 2f42966cd1ec287d1c2011224940131dbda2383d (patch) | |
tree | d3d51e5572593a32f0ccd00a15388a54d7842f72 /git/objects/util.py | |
parent | 1349ddc19f5a7f6aa56b0bc53d2f2c002128d360 (diff) | |
download | gitpython-2f42966cd1ec287d1c2011224940131dbda2383d.tar.gz |
try fix for Protocol buy in 3.10 3
Diffstat (limited to 'git/objects/util.py')
-rw-r--r-- | git/objects/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/objects/util.py b/git/objects/util.py index d227f346..4b830e0e 100644 --- a/git/objects/util.py +++ b/git/objects/util.py @@ -25,7 +25,7 @@ from datetime import datetime, timedelta, tzinfo from typing import (Any, Callable, Deque, Iterator, Generic, NamedTuple, overload, Sequence, TYPE_CHECKING, Tuple, Type, TypeVar, Union, cast) -from git.types import Has_id_attribute, Literal +from git.types import Has_id_attribute, Literal, _T if TYPE_CHECKING: from io import BytesIO, StringIO @@ -37,7 +37,7 @@ if TYPE_CHECKING: from .submodule.base import Submodule from git.types import Protocol, runtime_checkable else: - Protocol = Generic[Any] + Protocol = Generic[_T] def runtime_checkable(f): return f |