Skip to content

Commit 46c3878

Browse files
Fix mypy union-attr error on model._path
Signed-off-by: vinicius <viniciusnunes.tavares@gmail.com>
1 parent feafd50 commit 46c3878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/core/test_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2283,7 +2283,7 @@ def test_plan_select_model_deleted_model(sushi_context: Context) -> None:
22832283

22842284
# Delete the model file from disk.
22852285
model = sushi_context.get_model(model_name)
2286-
assert model._path.exists()
2286+
assert model._path is not None and model._path.exists()
22872287
model._path.unlink()
22882288

22892289
# Reload the context so it no longer knows about the deleted model.

0 commit comments

Comments
 (0)