diff options
author | Yobmod <yobmod@gmail.com> | 2021-07-08 21:45:37 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-07-08 21:45:37 +0100 |
commit | 9f88796704cc9f9826b1a25f322108f8dcc52ce6 (patch) | |
tree | e30a3ddbec4f4634e5747642e79c4151749e528e /git | |
parent | 5d3818ed3d51d400517a352b5b62e966164af8cf (diff) | |
download | gitpython-9f88796704cc9f9826b1a25f322108f8dcc52ce6.tar.gz |
Mak GitCmdObjectDB a froward ref
Diffstat (limited to 'git')
-rw-r--r-- | git/objects/fun.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git/objects/fun.py b/git/objects/fun.py index 89b02ad4..fc49e389 100644 --- a/git/objects/fun.py +++ b/git/objects/fun.py @@ -1,7 +1,6 @@ """Module with functions which are supposed to be as fast as possible""" from stat import S_ISDIR -from git import GitCmdObjectDB from git.compat import ( safe_decode, @@ -14,6 +13,7 @@ from typing import Callable, List, Sequence, Tuple, TYPE_CHECKING, Union, overlo if TYPE_CHECKING: from _typeshed import ReadableBuffer + from git import GitCmdObjectDB EntryTup = Tuple[bytes, int, str] # same as TreeCacheTup in tree.py @@ -143,7 +143,7 @@ def _to_full_path(item: Union[EntryTup, None], path_prefix: str) -> Union[EntryT return (item[0], item[1], path_prefix + item[2]) -def traverse_trees_recursive(odb: GitCmdObjectDB, tree_shas: Sequence[Union[bytes, None]], +def traverse_trees_recursive(odb: 'GitCmdObjectDB', tree_shas: Sequence[Union[bytes, None]], path_prefix: str) -> List[Union[EntryTup, None]]: """ :return: list with entries according to the given binary tree-shas. @@ -216,7 +216,7 @@ def traverse_trees_recursive(odb: GitCmdObjectDB, tree_shas: Sequence[Union[byte return out -def traverse_tree_recursive(odb: GitCmdObjectDB, tree_sha: bytes, path_prefix: str) -> List[Tuple[bytes, int, str]]: +def traverse_tree_recursive(odb: 'GitCmdObjectDB', tree_sha: bytes, path_prefix: str) -> List[Tuple[bytes, int, str]]: """ :return: list of entries of the tree pointed to by the binary tree_sha. An entry has the following format: |