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
commit babb477dff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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):