Skip to content

Commit f312d87

Browse files
authored
Apply suggestion from @beckermr
1 parent 860a419 commit f312d87

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/jax/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ def _run_object_checks(obj, cls, kind):
129129

130130
# check that val jax array
131131
if (
132-
hasattr(obj, "isStatic")
133-
and obj.isStatic()
132+
(hasattr(obj, "isStatic")
133+
and obj.isStatic())
134134
or isinstance(obj, jax_galsim.Sensor)
135135
):
136136
assert isinstance(eval(repr(obj)) == obj, bool)

0 commit comments

Comments
 (0)