sweep_artifacts: narrow the optional flow store for mypy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
2026-10-15 09:55:41 +02:00
co-authored by Claude Opus 5.5
parent f57b6f695b
commit b4ae333b6a
+2 -1
View File
@@ -403,7 +403,8 @@ def sweep_artifacts(
return 0 return 0
keep = set(session.exec(select(col(RunArtifact.digest)).distinct()).all()) keep = set(session.exec(select(col(RunArtifact.digest)).distinct()).all())
for name in flows.list_flows() if flows else (): if flows is not None:
for name in flows.list_flows():
for draft in (False, True): for draft in (False, True):
try: try:
flow = flows.read_flow(name, draft=draft) flow = flows.read_flow(name, draft=draft)