Skip to content

Commit 2eee180

Browse files
committed
test: narrow a type-ignore code to match the too-many-args error
mypy reports the extra-positional-argument call as a call-arg error, so the suppression on the SdkError over-application test must name [call-arg] rather than [misc]; the stale [misc] code read as an unused ignore under --strict.
1 parent 700e004 commit 2eee180

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/dexpace-sdk-core/tests/errors/test_hierarchy.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_continuation_token_propagates() -> None:
8181

8282
def test_sdk_error_rejects_extra_positional_args() -> None:
8383
with pytest.raises(TypeError):
84-
SdkError("msg", "extra") # type: ignore[misc,arg-type]
84+
SdkError("msg", "extra") # type: ignore[call-arg,arg-type]
8585

8686

8787
@pytest.mark.req("XCUT-4")

0 commit comments

Comments
 (0)