Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2f42966

Browse files
committed
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

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /