From a74992c058d010d9cedcc47a2785a367b3c2f0a3 Mon Sep 17 00:00:00 2001 From: JamieDeMaria Date: Mon, 19 Aug 2024 12:20:32 -0400 Subject: [PATCH] assert --- .../dagster/dagster/_core/storage/runs/sql_run_storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_modules/dagster/dagster/_core/storage/runs/sql_run_storage.py b/python_modules/dagster/dagster/_core/storage/runs/sql_run_storage.py index ed9653c8b3b61..571bbbfdf5d78 100644 --- a/python_modules/dagster/dagster/_core/storage/runs/sql_run_storage.py +++ b/python_modules/dagster/dagster/_core/storage/runs/sql_run_storage.py @@ -847,8 +847,8 @@ def get_backfills( "Conflicting status filters provided to get_backfills. Choose one of status or BulkActionsFilter.status." ) status = status or (filters.status if filters else None) - if status: # should also be non-None at this point, but pyright must be appeased - query = query.where(BulkActionsTable.c.status == status.value) + assert status + query = query.where(BulkActionsTable.c.status == status.value) if cursor: cursor_query = db_select([BulkActionsTable.c.id]).where( BulkActionsTable.c.key == cursor