Skip to content

Commit 544d892

Browse files
fix(cli): add type guard for store._registry to fix mypy union-attr error
Adds `assert store._registry is not None` before calling delete_project to satisfy mypy's type checker (store._registry is typed as BaseRegistry | None).
1 parent 4783b76 commit 544d892

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sdk/python/feast/cli/projects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def project_delete(ctx: click.Context, name: str, yes: bool):
108108
)
109109

110110
try:
111+
assert store._registry is not None
111112
store._registry.delete_project(name, commit=True)
112113
except (FeastObjectNotFoundException, ProjectNotFoundException) as e:
113114
print(str(e))

0 commit comments

Comments
 (0)