We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42028ef commit 9a2ce20Copy full SHA for 9a2ce20
sqlmesh/core/model/kind.py
@@ -385,7 +385,8 @@ def model_kind_type_from_name(name: t.Optional[str]) -> t.Type[ModelKind]:
385
return t.cast(t.Type[ModelKind], klass)
386
387
388
-def _model_kind_validator(v: t.Any, values: t.Any) -> ModelKind:
+@field_validator_v1_args
389
+def _model_kind_validator(v: t.Any, values: t.Dict[str, t.Any]) -> ModelKind:
390
values = values if isinstance(values, dict) else values.data
391
dialect = values.get("dialect")
392
0 commit comments