summaryrefslogtreecommitdiff
path: root/git/index/base.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-19 16:50:47 +0100
committerYobmod <yobmod@gmail.com>2021-07-19 16:50:47 +0100
commit2fa9fb1ac11b53859959ea9bd37c0ae6c17ccdb5 (patch)
treeb9741ac6e0e124d082e96304970b32bd0b24b164 /git/index/base.py
parentacbd6bad9ded9a1d59e80e71d334d64b0244f5cd (diff)
downloadgitpython-2fa9fb1ac11b53859959ea9bd37c0ae6c17ccdb5.tar.gz
update types in types.py
Diffstat (limited to 'git/index/base.py')
-rw-r--r--git/index/base.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/git/index/base.py b/git/index/base.py
index 3aa06e38..220bdc85 100644
--- a/git/index/base.py
+++ b/git/index/base.py
@@ -572,7 +572,7 @@ class IndexFile(LazyMixin, git_diff.Diffable, Serializable):
# note: additional deserialization could be saved if write_tree_from_cache
# would return sorted tree entries
root_tree = Tree(self.repo, binsha, path='')
- root_tree._cache = tree_items # type: ignore # should this be encoded to [bytes, int, str]?
+ root_tree._cache = tree_items
return root_tree
def _process_diff_args(self, # type: ignore[override]
@@ -586,8 +586,9 @@ class IndexFile(LazyMixin, git_diff.Diffable, Serializable):
return args
def _to_relative_path(self, path: PathLike) -> PathLike:
- """:return: Version of path relative to our git directory or raise ValueError
- if it is not within our git direcotory"""
+ """
+ :return: Version of path relative to our git directory or raise ValueError
+ if it is not within our git direcotory"""
if not osp.isabs(path):
return path
if self.repo.bare: