File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ def __eq__(self, actual) -> bool:
454
454
return False
455
455
456
456
# Return true if the two numbers are within the tolerance.
457
- result : bool = abs (self .expected - actual ) <= self .tolerance # type: ignore[arg-type]
457
+ result : bool = abs (self .expected - actual ) <= self .tolerance
458
458
return result
459
459
460
460
# Ignore type because of https://github.com/python/mypy/issues/4266.
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ def pytest_runtest_call(item: Item) -> None:
167
167
del sys .last_value
168
168
del sys .last_traceback
169
169
if sys .version_info >= (3 , 12 , 0 ):
170
- del sys .last_exc # type: ignore[attr-defined]
170
+ del sys .last_exc
171
171
except AttributeError :
172
172
pass
173
173
try :
@@ -177,7 +177,7 @@ def pytest_runtest_call(item: Item) -> None:
177
177
sys .last_type = type (e )
178
178
sys .last_value = e
179
179
if sys .version_info >= (3 , 12 , 0 ):
180
- sys .last_exc = e # type: ignore[attr-defined]
180
+ sys .last_exc = e
181
181
assert e .__traceback__ is not None
182
182
# Skip *this* frame
183
183
sys .last_traceback = e .__traceback__ .tb_next
Original file line number Diff line number Diff line change @@ -1032,7 +1032,7 @@ def runtest(self):
1032
1032
assert sys .last_type is IndexError
1033
1033
assert isinstance (sys .last_value , IndexError )
1034
1034
if sys .version_info >= (3 , 12 , 0 ):
1035
- assert isinstance (sys .last_exc , IndexError ) # type: ignore[attr-defined]
1035
+ assert isinstance (sys .last_exc , IndexError )
1036
1036
1037
1037
assert sys .last_value .args [0 ] == "TEST"
1038
1038
assert sys .last_traceback
You can’t perform that action at this time.
0 commit comments