conditional_update(): disable false pylint error message
Disable an E1137 that pylint generates in conditional_update(). The "order" variable is always a list and not a tuple when it contains keys. Change-Id: I4ca2d2bb8dd4dbf8f8d8918bf51001f10049f6a7
This commit is contained in:
parent
d2dd034cf4
commit
d613ce06cc
@ -7350,6 +7350,7 @@ def conditional_update(context, model, values, expected_values, filters=(),
|
||||
else_=value.else_)
|
||||
|
||||
if key in order:
|
||||
# pylint: disable=E1137; ("order" is known to be a list, here)
|
||||
order[order.index(key)] = (key, value)
|
||||
continue
|
||||
# NOTE(geguileo): Check Case first since it's a type of orm value
|
||||
|
Loading…
Reference in New Issue
Block a user