Skip to content

Commit 90906d0

Browse files
committed
fix: satisfy lint in control input parser
1 parent 1a94638 commit 90906d0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎models/src/agent_control_models/server.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def _strip_slug_name(v: str) -> str:
1717
_CONTROL_DEFINITION_ADAPTER = TypeAdapter(ControlDefinition)
1818
_TEMPLATE_CONTROL_INPUT_ADAPTER = TypeAdapter(TemplateControlInput)
1919
_TEMPLATE_ONLY_CONTROL_FIELDS = frozenset({"template", "template_values"})
20-
_RAW_CONTROL_INPUT_FIELDS = frozenset(ControlDefinition.model_fields) - _TEMPLATE_ONLY_CONTROL_FIELDS
20+
_RAW_CONTROL_INPUT_FIELDS = (
21+
frozenset(ControlDefinition.model_fields) - _TEMPLATE_ONLY_CONTROL_FIELDS
22+
)
2123
_RAW_CONTROL_INPUT_FIELDS = _RAW_CONTROL_INPUT_FIELDS.union(
2224
{
2325
# Legacy flat leaf fields still accepted for raw controls.

0 commit comments

Comments
 (0)