Python lint: Ruff rules for comprehensions and performance (#512)

This commit is contained in:
Christian Clauss
2025-04-15 16:58:33 +02:00
committed by GitHub
parent 8c9269c34b
commit babb477dff
6 changed files with 15 additions and 14 deletions

View File

@@ -80,7 +80,7 @@ class FuncMetadata(BaseModel):
dicts (JSON objects) as JSON strings, which can be pre-parsed here.
"""
new_data = data.copy() # Shallow copy
for field_name, _field_info in self.arg_model.model_fields.items():
for field_name in self.arg_model.model_fields.keys():
if field_name not in data.keys():
continue
if isinstance(data[field_name], str):