Skip to content

Commit 7c3c7b1

Browse files
committed
test(action-space): suppress pyright on intentional ContinuousSpace rejection tests
These negative tests pass invalid dtype/extra kwargs to assert pydantic ValidationError; mark the deliberate type violations with type: ignore.
1 parent 804f2da commit 7c3c7b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_action_space.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ def test_continuous_space_rejects_low_ge_high() -> None:
4242

4343
def test_continuous_space_rejects_unknown_dtype() -> None:
4444
with pytest.raises(ValidationError):
45-
ContinuousSpace(low=0.0, high=1.0, dtype="double")
45+
ContinuousSpace(low=0.0, high=1.0, dtype="double") # type: ignore
4646

4747

4848
def test_continuous_space_forbids_extra_fields() -> None:
4949
with pytest.raises(ValidationError):
50-
ContinuousSpace(low=0.0, high=1.0, step=0.1)
50+
ContinuousSpace(low=0.0, high=1.0, step=0.1) # type: ignore

0 commit comments

Comments
 (0)