sweep_artifacts: narrow the optional flow store for mypy
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user