fix: fix 'unnecessary-comprehension' for pylint
This commit is contained in:
parent
601dec7777
commit
5c23120795
2 changed files with 1 additions and 2 deletions
|
@ -35,4 +35,3 @@ disable=fixme,
|
|||
too-many-statements,
|
||||
ungrouped-imports,
|
||||
unidiomatic-typecheck,
|
||||
unnecessary-comprehension,
|
||||
|
|
|
@ -183,7 +183,7 @@ class WuttaDictEnum(colander.String):
|
|||
def widget_maker(self, **kwargs): # pylint: disable=empty-docstring
|
||||
""" """
|
||||
if "values" not in kwargs:
|
||||
kwargs["values"] = [(k, v) for k, v in self.enum_dct.items()]
|
||||
kwargs["values"] = list(self.enum_dct.items())
|
||||
|
||||
return widgets.SelectWidget(**kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue