Skip to content

Commit f8ec952

Browse files
committed
fix issue with mypy update to 0.9
1 parent 3a84459 commit f8ec952

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/util.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ def __getattr__(self, attr: str) -> Any:
971971
# END for each item
972972
return list.__getattribute__(self, attr)
973973

974-
def __getitem__(self, index: Union[int, slice, str]) -> Any:
974+
def __getitem__(self, index: Union[int, slice, str]) -> Any: # type: ignore
975975
if isinstance(index, int):
976976
return list.__getitem__(self, index)
977977
elif isinstance(index, slice):
@@ -983,7 +983,7 @@ def __getitem__(self, index: Union[int, slice, str]) -> Any:
983983
raise IndexError("No item found with id %r" % (self._prefix + index)) from e
984984
# END handle getattr
985985

986-
def __delitem__(self, index: Union[int, str, slice]) -> None:
986+
def __delitem__(self, index: Union[int, str, slice]) -> None: # type: ignore
987987

988988
delindex = cast(int, index)
989989
if not isinstance(index, int):

0 commit comments

Comments
 (0)