Skip to content

Commit

Permalink
Updated _handler.delete_model to match other deletion function signat…
Browse files Browse the repository at this point in the history
…ures
  • Loading branch information
wpfl-dbt committed Feb 14, 2025
1 parent d7b44b0 commit 0610a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matchbox/client/_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def get_model_ancestors_cache(name: str) -> list[ModelAncestor]:
return [ModelAncestor.model_validate(m) for m in res.json()]


def delete_model(name: str, certain: bool | None = False) -> ModelOperationStatus:
def delete_model(name: str, certain: bool = False) -> ModelOperationStatus:
"""Delete a model in Matchbox."""
res = CLIENT.delete(f"/models/{name}", params={"certain": certain})
return ModelOperationStatus.model_validate(res.json())

0 comments on commit 0610a4d

Please sign in to comment.