3
0
Fork 0

fix: fix 'use-a-generator' for pylint

This commit is contained in:
Lance Edgar 2025-08-31 22:36:16 -05:00
parent 15ba94fc83
commit a891c01da1
3 changed files with 2 additions and 3 deletions

View file

@ -40,4 +40,3 @@ disable=fixme,
unnecessary-lambda-assignment,
unspecified-encoding,
unused-argument,
use-a-generator,

View file

@ -835,7 +835,7 @@ class Grid: # pylint: disable=too-many-instance-attributes
This will normalize the list/dict to desired internal format.
"""
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]
self.tools = OrderedDict(tools or [])

View file

@ -2807,7 +2807,7 @@ class MasterView(View):
[
prop.key
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)
]
)