summaryrefslogtreecommitdiff
path: root/git/objects/tree.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-08 11:30:16 +0100
committerYobmod <yobmod@gmail.com>2021-07-08 11:30:16 +0100
commit2e2fe186d09272c3cb6c96467fff362deb90994f (patch)
treeb2ffef306dd111d633e1b3fa66464eda09c5f903 /git/objects/tree.py
parent873ebe61431c50bb39afd5cafff498b3e1879342 (diff)
downloadgitpython-2e2fe186d09272c3cb6c96467fff362deb90994f.tar.gz
Increase mypy strictness (no_implicit_optional & warn_redundant_casts) and fix errors
Diffstat (limited to 'git/objects/tree.py')
-rw-r--r--git/objects/tree.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/git/objects/tree.py b/git/objects/tree.py
index 2e8d8a79..34fb93dc 100644
--- a/git/objects/tree.py
+++ b/git/objects/tree.py
@@ -216,7 +216,6 @@ class Tree(IndexObject, diff.Diffable, util.Traversable, util.Serializable):
def _get_intermediate_items(cls, index_object: 'Tree',
) -> Union[Tuple['Tree', ...], Tuple[()]]:
if index_object.type == "tree":
- index_object = cast('Tree', index_object)
return tuple(index_object._iter_convert_to_object(index_object._cache))
return ()