Skip to content

Commit

Permalink
assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Aug 22, 2024
1 parent b5481c5 commit 997e591
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 997e591

Please sign in to comment.