No idea why this call to float was here.
Fix large precision comparisions (even for ints). Closes #166
This commit is contained in:
@@ -94,10 +94,10 @@ def maximum(validator, maximum, instance, schema):
|
|||||||
return
|
return
|
||||||
|
|
||||||
if schema.get("exclusiveMaximum", False):
|
if schema.get("exclusiveMaximum", False):
|
||||||
failed = float(instance) >= maximum
|
failed = instance >= maximum
|
||||||
cmp = "greater than or equal to"
|
cmp = "greater than or equal to"
|
||||||
else:
|
else:
|
||||||
failed = float(instance) > maximum
|
failed = instance > maximum
|
||||||
cmp = "greater than"
|
cmp = "greater than"
|
||||||
|
|
||||||
if failed:
|
if failed:
|
||||||
|
Reference in New Issue
Block a user