(cls, value: str)
| 216 | @field_validator("action_field") |
| 217 | @classmethod |
| 218 | def validate_action_field(cls, value: str) -> str: |
| 219 | normalized = value.strip() |
| 220 | if normalized not in ACTION_FIELDS: |
| 221 | raise ValueError(f"action_field must be one of: {', '.join(sorted(ACTION_FIELDS))}") |
| 222 | return normalized |
| 223 | |
| 224 | |
| 225 | class BaseModel: |
nothing calls this directly
no outgoing calls
no test coverage detected