fix: fix 'use-a-generator' for pylint
This commit is contained in:
parent
15ba94fc83
commit
a891c01da1
3 changed files with 2 additions and 3 deletions
|
@ -40,4 +40,3 @@ disable=fixme,
|
||||||
unnecessary-lambda-assignment,
|
unnecessary-lambda-assignment,
|
||||||
unspecified-encoding,
|
unspecified-encoding,
|
||||||
unused-argument,
|
unused-argument,
|
||||||
use-a-generator,
|
|
||||||
|
|
|
@ -835,7 +835,7 @@ class Grid: # pylint: disable=too-many-instance-attributes
|
||||||
This will normalize the list/dict to desired internal format.
|
This will normalize the list/dict to desired internal format.
|
||||||
"""
|
"""
|
||||||
if tools and isinstance(tools, list):
|
if tools and isinstance(tools, list):
|
||||||
if not any([isinstance(t, (tuple, list)) for t in tools]):
|
if not any(isinstance(t, (tuple, list)) for t in tools):
|
||||||
tools = [(self.app.make_uuid(), t) for t in tools]
|
tools = [(self.app.make_uuid(), t) for t in tools]
|
||||||
self.tools = OrderedDict(tools or [])
|
self.tools = OrderedDict(tools or [])
|
||||||
|
|
||||||
|
|
|
@ -2807,7 +2807,7 @@ class MasterView(View):
|
||||||
[
|
[
|
||||||
prop.key
|
prop.key
|
||||||
for prop in inspector.column_attrs
|
for prop in inspector.column_attrs
|
||||||
if all([col.name in keys for col in prop.columns])
|
if all(col.name in keys for col in prop.columns)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue