diff options
author | Sista Seetaram <hanumaseetaram@gmail.com> | 2021-10-02 09:25:50 +0530 |
---|---|---|
committer | Sista Seetaram <hanumaseetaram@gmail.com> | 2021-10-02 09:25:50 +0530 |
commit | 5ec9e4dce79dfea3ebb5be253d55ebc0ba78a5aa (patch) | |
tree | bf05cda17501d3d3a768fa1973e0275e22587b01 /numpy/typing/mypy_plugin.py | |
parent | 6ad932c41281a6b7e525aba8a1057c09065251fa (diff) | |
download | numpy-5ec9e4dce79dfea3ebb5be253d55ebc0ba78a5aa.tar.gz |
MAINT:redundant 'else' statement with 'for' loop#19077
Diffstat (limited to 'numpy/typing/mypy_plugin.py')
-rw-r--r-- | numpy/typing/mypy_plugin.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/typing/mypy_plugin.py b/numpy/typing/mypy_plugin.py index 5421d6bfa..5faed12fc 100644 --- a/numpy/typing/mypy_plugin.py +++ b/numpy/typing/mypy_plugin.py @@ -131,9 +131,8 @@ if TYPE_CHECKING or MYPY_EX is None: for i, value in enumerate(iterable): if getattr(value, "id", None) == id: return i - else: - raise ValueError("Failed to identify a `ImportFrom` instance " - f"with the following id: {id!r}") + raise ValueError("Failed to identify a `ImportFrom` instance " + f"with the following id: {id!r}") def _override_imports( file: MypyFile, |