chore: cleanup pycodestyle E rules (#8269)
This commit is contained in:
@@ -142,7 +142,7 @@ class ListWorksheetRecordsTool(BuiltinTool):
|
||||
for control in controls:
|
||||
control_type_id = self.get_real_type_id(control)
|
||||
if (control_type_id in self._get_ignore_types()) or (
|
||||
allow_fields and not control["controlId"] in allow_fields
|
||||
allow_fields and control["controlId"] not in allow_fields
|
||||
):
|
||||
continue
|
||||
else:
|
||||
|
@@ -67,7 +67,7 @@ class ListWorksheetsTool(BuiltinTool):
|
||||
items = []
|
||||
tables = ""
|
||||
for item in section.get("items", []):
|
||||
if item.get("type") == 0 and (not "notes" in item or item.get("notes") != "NO"):
|
||||
if item.get("type") == 0 and ("notes" not in item or item.get("notes") != "NO"):
|
||||
if type == "json":
|
||||
filtered_item = {"id": item["id"], "name": item["name"], "notes": item.get("notes", "")}
|
||||
items.append(filtered_item)
|
||||
|
Reference in New Issue
Block a user