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-module-docstring,
|
||||
no-member,
|
||||
simplifiable-if-expression,
|
||||
singleton-comparison,
|
||||
super-init-not-called,
|
||||
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
|
||||
# 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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue