Skip to content

Commit 2fc8a46

Browse files
committed
Add final types to tree.py
1 parent e6bee43 commit 2fc8a46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/objects/tree.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ def __contains__(self, item: Union[IndexObjUnion, PathLike]) -> bool:
375375
# END for each item
376376
return False
377377

378-
def __reversed__(self):
379-
return reversed(self._iter_convert_to_object(self._cache))
378+
def __reversed__(self) -> Iterator[IndexObjUnion]:
379+
return reversed(self._iter_convert_to_object(self._cache)) # type: ignore
380380

381381
def _serialize(self, stream: 'BytesIO') -> 'Tree':
382382
"""Serialize this tree into the stream. Please note that we will assume

0 commit comments

Comments
 (0)