diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-07-25 10:22:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-25 10:22:22 +0800 |
commit | c5e6ae25b9169e5ef070d791fb9d620e2357e24e (patch) | |
tree | 680964b9eb8cc102cd1e79f8aeadde6620fc0eb6 /git/objects/tree.py | |
parent | 0c1446da2d1ce0382cbc65d7a2aad4483783ae74 (diff) | |
parent | be7bb868279f61d55594059690904baabe30503c (diff) | |
download | gitpython-c5e6ae25b9169e5ef070d791fb9d620e2357e24e.tar.gz |
Merge pull request #1298 from Yobmod/main
Revert use of Typeguard and therefore typing-extensions==3.10.0.0
Diffstat (limited to 'git/objects/tree.py')
-rw-r--r-- | git/objects/tree.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git/objects/tree.py b/git/objects/tree.py index dd1fe783..70f36af5 100644 --- a/git/objects/tree.py +++ b/git/objects/tree.py @@ -24,7 +24,7 @@ from .fun import ( from typing import (Any, Callable, Dict, Iterable, Iterator, List, Tuple, Type, Union, cast, TYPE_CHECKING) -from git.types import PathLike, TypeGuard, Literal +from git.types import PathLike, Literal if TYPE_CHECKING: from git.repo import Repo @@ -36,8 +36,8 @@ TraversedTreeTup = Union[Tuple[Union['Tree', None], IndexObjUnion, Tuple['Submodule', 'Submodule']]] -def is_tree_cache(inp: Tuple[bytes, int, str]) -> TypeGuard[TreeCacheTup]: - return isinstance(inp[0], bytes) and isinstance(inp[1], int) and isinstance([inp], str) +# def is_tree_cache(inp: Tuple[bytes, int, str]) -> TypeGuard[TreeCacheTup]: +# return isinstance(inp[0], bytes) and isinstance(inp[1], int) and isinstance([inp], str) #-------------------------------------------------------- |