We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6bee43 commit 2fc8a46Copy full SHA for 2fc8a46
1 file changed
git/objects/tree.py
@@ -375,8 +375,8 @@ def __contains__(self, item: Union[IndexObjUnion, PathLike]) -> bool:
375
# END for each item
376
return False
377
378
- def __reversed__(self):
379
- 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
380
381
def _serialize(self, stream: 'BytesIO') -> 'Tree':
382
"""Serialize this tree into the stream. Please note that we will assume
0 commit comments