Skip to content

Commit 2f42966

Browse files
committedAug 9, 2021
try fix for Protocol buy in 3.10 3
1 parent 1349ddc commit 2f42966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎git/objects/util.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from typing import (Any, Callable, Deque, Iterator, Generic, NamedTuple, overload, Sequence,
2626
TYPE_CHECKING, Tuple, Type, TypeVar, Union, cast)
2727

28-
from git.types import Has_id_attribute, Literal
28+
from git.types import Has_id_attribute, Literal, _T
2929

3030
if TYPE_CHECKING:
3131
from io import BytesIO, StringIO
@@ -37,7 +37,7 @@
3737
from .submodule.base import Submodule
3838
from git.types import Protocol, runtime_checkable
3939
else:
40-
Protocol = Generic[Any]
40+
Protocol = Generic[_T]
4141

4242
def runtime_checkable(f):
4343
return f

0 commit comments

Comments
 (0)
Please sign in to comment.