fix: fix 'simplifiable-if-expression' for pylint
This commit is contained in:
parent
6c66c8d57b
commit
48494ee5e4
2 changed files with 1 additions and 2 deletions
|
@ -11,7 +11,6 @@ disable=fixme,
|
||||||
missing-function-docstring,
|
missing-function-docstring,
|
||||||
missing-module-docstring,
|
missing-module-docstring,
|
||||||
no-member,
|
no-member,
|
||||||
simplifiable-if-expression,
|
|
||||||
singleton-comparison,
|
singleton-comparison,
|
||||||
super-init-not-called,
|
super-init-not-called,
|
||||||
too-many-locals,
|
too-many-locals,
|
||||||
|
|
|
@ -1125,7 +1125,7 @@ class Form: # pylint: disable=too-many-instance-attributes,too-many-public-meth
|
||||||
# for now we explicitly translate here, ugh. also
|
# for now we explicitly translate here, ugh. also
|
||||||
# note this does not yet allow for null values.. :(
|
# note this does not yet allow for null values.. :(
|
||||||
if isinstance(field.typ, colander.Boolean):
|
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)
|
model_data[field.oid] = make_json_safe(value)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue