diff options
author | Yobmod <yobmod@gmail.com> | 2021-07-24 17:10:32 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-07-24 17:10:32 +0100 |
commit | e6345d60a7926bd413d3d7238ba06f7c81a7faf9 (patch) | |
tree | 3f776c6a46bafaec663483adf05d6f96cead7a50 /git/objects/tree.py | |
parent | 0c1446da2d1ce0382cbc65d7a2aad4483783ae74 (diff) | |
download | gitpython-e6345d60a7926bd413d3d7238ba06f7c81a7faf9.tar.gz |
Replace all Typeguard with cast, revert update to typing-extensions==3.10.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) #-------------------------------------------------------- |