Enable pylint consider-math-not-float check (#154338)

This commit is contained in:
Marc Mueller
2025-10-13 21:14:57 +02:00
committed by GitHub
parent 82c536a4e9
commit 1e5f5f4ad3
11 changed files with 31 additions and 22 deletions

View File

@@ -306,7 +306,7 @@ def test_find_unserializable_data() -> None:
assert find_paths_unserializable_data({("A",): 1}) == {"$<key: ('A',)>": ("A",)}
assert math.isnan(
find_paths_unserializable_data(
float("nan"), dump=partial(json.dumps, allow_nan=False)
math.nan, dump=partial(json.dumps, allow_nan=False)
)["$"]
)