Skip to content

Commit 21e702e

Browse files
committed
1 parent 6f633b8 commit 21e702e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/ndi/fun/doc.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,7 @@ def _compare(a: Any, b: Any, path: str = "") -> None:
388388
else:
389389
# Treat NaN == NaN (matches MATLAB behaviour)
390390
both_nan = (
391-
isinstance(a, float)
392-
and isinstance(b, float)
393-
and math.isnan(a)
394-
and math.isnan(b)
391+
isinstance(a, float) and isinstance(b, float) and math.isnan(a) and math.isnan(b)
395392
)
396393
if not both_nan and a != b:
397394
details.append(f"{path}: {a!r} != {b!r}")

0 commit comments

Comments
 (0)