diff options
author | Yobmod <yobmod@gmail.com> | 2021-06-17 17:49:48 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-06-17 17:49:48 +0100 |
commit | f8ec952343583324c4f5dbefa4fb846f395ea6e4 (patch) | |
tree | 4a3b96e338945a8dba5804618f8fe42e0d24bd7f /git/util.py | |
parent | 3a84459c6a5a1d8a81e4a51189091ef135e1776e (diff) | |
download | gitpython-f8ec952343583324c4f5dbefa4fb846f395ea6e4.tar.gz |
fix issue with mypy update to 0.9
Diffstat (limited to 'git/util.py')
-rw-r--r-- | git/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/util.py b/git/util.py index edbd5f1e..05eeb4ad 100644 --- a/git/util.py +++ b/git/util.py @@ -971,7 +971,7 @@ class IterableList(list): # END for each item return list.__getattribute__(self, attr) - def __getitem__(self, index: Union[int, slice, str]) -> Any: + def __getitem__(self, index: Union[int, slice, str]) -> Any: # type: ignore if isinstance(index, int): return list.__getitem__(self, index) elif isinstance(index, slice): @@ -983,7 +983,7 @@ class IterableList(list): raise IndexError("No item found with id %r" % (self._prefix + index)) from e # END handle getattr - def __delitem__(self, index: Union[int, str, slice]) -> None: + def __delitem__(self, index: Union[int, str, slice]) -> None: # type: ignore delindex = cast(int, index) if not isinstance(index, int): |