Movatterモバイル変換


[0]ホーム

URL:


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

Commit2f42966

Browse files
committed
try fix for Protocol buy in 3.10 3
1 parent1349ddc commit2f42966

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
fromtypingimport (Any,Callable,Deque,Iterator,Generic,NamedTuple,overload,Sequence,
2626
TYPE_CHECKING,Tuple,Type,TypeVar,Union,cast)
2727

28-
fromgit.typesimportHas_id_attribute,Literal
28+
fromgit.typesimportHas_id_attribute,Literal,_T
2929

3030
ifTYPE_CHECKING:
3131
fromioimportBytesIO,StringIO
@@ -37,7 +37,7 @@
3737
from .submodule.baseimportSubmodule
3838
fromgit.typesimportProtocol,runtime_checkable
3939
else:
40-
Protocol=Generic[Any]
40+
Protocol=Generic[_T]
4141

4242
defruntime_checkable(f):
4343
returnf

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp