Skip to content

Commit

Permalink
Fix tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
RedTachyon committed Dec 5, 2023
1 parent f753f1a commit 31061a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gymnasium/spaces/box.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def contains(self, x: Any) -> bool:
if self.nullable:
bounded |= np.isnan(x)

return np.all(bounded)
return bool(np.all(bounded))

def to_jsonable(self, sample_n: Sequence[NDArray[Any]]) -> list[list]:
"""Convert a batch of samples from this space to a JSONable data type."""
Expand Down

0 comments on commit 31061a5

Please sign in to comment.