Skip to content

Commit 4ad621f

Browse files
committed
Fix: Use the Pydantic V1 validator interop in the model kind validator
1 parent 9a2ce20 commit 4ad621f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sqlmesh/core/model/kind.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ def model_kind_type_from_name(name: t.Optional[str]) -> t.Type[ModelKind]:
387387

388388
@field_validator_v1_args
389389
def _model_kind_validator(v: t.Any, values: t.Dict[str, t.Any]) -> ModelKind:
390-
values = values if isinstance(values, dict) else values.data
391390
dialect = values.get("dialect")
392391

393392
if isinstance(v, _ModelKind):

0 commit comments

Comments
 (0)