summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-31 19:12:14 +0100
committerYobmod <yobmod@gmail.com>2021-07-31 19:12:14 +0100
commit2fc8a461017db70051e12746468585479c081bec (patch)
treee849b430abe68f4d8c32e5ef0d1ea26bd8b887f7
parente6bee43b97862182d6c30bc8200f6abd1ff759e5 (diff)
downloadgitpython-2fc8a461017db70051e12746468585479c081bec.tar.gz
Add final types to tree.py
-rw-r--r--git/objects/tree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/objects/tree.py b/git/objects/tree.py
index 70f36af5..0cceb59a 100644
--- a/git/objects/tree.py
+++ b/git/objects/tree.py
@@ -375,8 +375,8 @@ class Tree(IndexObject, git_diff.Diffable, util.Traversable, util.Serializable):
# END for each item
return False
- def __reversed__(self):
- return reversed(self._iter_convert_to_object(self._cache))
+ def __reversed__(self) -> Iterator[IndexObjUnion]:
+ return reversed(self._iter_convert_to_object(self._cache)) # type: ignore
def _serialize(self, stream: 'BytesIO') -> 'Tree':
"""Serialize this tree into the stream. Please note that we will assume