Skip to content

Commit 1df5064

Browse files
committed
Fix: Function signature of the model kind validator
1 parent 4ad621f commit 1df5064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmesh/core/model/kind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def model_kind_type_from_name(name: t.Optional[str]) -> t.Type[ModelKind]:
386386

387387

388388
@field_validator_v1_args
389-
def _model_kind_validator(v: t.Any, values: t.Dict[str, t.Any]) -> ModelKind:
389+
def _model_kind_validator(cls: t.Type, v: t.Any, values: t.Dict[str, t.Any]) -> ModelKind:
390390
dialect = values.get("dialect")
391391

392392
if isinstance(v, _ModelKind):

0 commit comments

Comments
 (0)