From 2f42966cd1ec287d1c2011224940131dbda2383d Mon Sep 17 00:00:00 2001 From: Yobmod Date: Mon, 9 Aug 2021 10:08:42 +0100 Subject: try fix for Protocol buy in 3.10 3 --- git/objects/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/objects') 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 -- cgit v1.2.1