3
0
Fork 0

fix: fix 'simplifiable-if-expression' for pylint

This commit is contained in:
Lance Edgar 2025-09-01 10:39:30 -05:00
parent 6c66c8d57b
commit 48494ee5e4
2 changed files with 1 additions and 2 deletions

View file

@ -11,7 +11,6 @@ disable=fixme,
missing-function-docstring,
missing-module-docstring,
no-member,
simplifiable-if-expression,
singleton-comparison,
super-init-not-called,
too-many-locals,

View file

@ -1125,7 +1125,7 @@ class Form: # pylint: disable=too-many-instance-attributes,too-many-public-meth
# for now we explicitly translate here, ugh. also
# note this does not yet allow for null values.. :(
if isinstance(field.typ, colander.Boolean):
value = True if value == field.typ.true_val else False
value = value == field.typ.true_val
model_data[field.oid] = make_json_safe(value)