1
0
Fork 0

lint(api): avoid shadowing params var

This commit is contained in:
Sean Sube 2023-07-01 12:38:26 -05:00
parent 7736430fe7
commit 8dbecd6947
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 4 additions and 4 deletions

View File

@ -59,8 +59,8 @@ def stage_upscale_correction(
chain = ChainPipeline()
if pre_stages is not None:
for stage, params in pre_stages:
chain.append((stage, params))
for stage, pre_params, pre_opts in pre_stages:
chain.append((stage, pre_params, pre_opts))
upscale_opts = {
"upscale": upscale,
@ -118,7 +118,7 @@ def stage_upscale_correction(
logger.warn("unknown upscaling order: %s", upscale.upscale_order)
if post_stages is not None:
for stage, params in post_stages:
chain.append((stage, params))
for stage, post_params, post_opts in post_stages:
chain.append((stage, post_params, post_opts))
return chain