Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 4, 2024
1 parent 550c919 commit 0b26dfd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ def coerce_schema_compliance_recursive(obj, schema):
elif key in schema.get("properties", {}):
prop_schema = schema["properties"][key]
if prop_schema.get("type") == "number" and (value is None or value == "NaN"):
obj[
key
] = (
obj[key] = (
math.nan
) # Turn None into NaN if a number is expected (JavaScript JSON.stringify turns NaN into None)
elif prop_schema.get("type") == "number" and isinstance(value, int):
Expand Down

0 comments on commit 0b26dfd

Please sign in to comment.