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

Appearance settings

Commit 2f42966

Browse filesBrowse files
committed
try fix for Protocol buy in 3.10 3
1 parent 1349ddc commit 2f42966
Copy full SHA for 2f42966

1 file changed

+2-2Lines changed: 2 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎git/objects/util.py‎

Copy file name to clipboardExpand all lines: git/objects/util.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.