[mypy 1.10.0] Remove 'type: ignore' that became useless

This commit is contained in:
Pierre Sassoulas
2024-04-30 18:11:06 +02:00
parent 4788165e69
commit 2b6c946a2b
3 changed files with 4 additions and 4 deletions

View File

@@ -1032,7 +1032,7 @@ def test_store_except_info_on_error() -> None:
assert sys.last_type is IndexError
assert isinstance(sys.last_value, IndexError)
if sys.version_info >= (3, 12, 0):
assert isinstance(sys.last_exc, IndexError) # type: ignore[attr-defined]
assert isinstance(sys.last_exc, IndexError)
assert sys.last_value.args[0] == "TEST"
assert sys.last_traceback