mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
Enable pylint consider-math-not-float check (#154338)
This commit is contained in:
@@ -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)
|
||||
)["$"]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user