lint(api): avoid shadowing params var
This commit is contained in:
parent
7736430fe7
commit
8dbecd6947
|
@ -59,8 +59,8 @@ def stage_upscale_correction(
|
||||||
chain = ChainPipeline()
|
chain = ChainPipeline()
|
||||||
|
|
||||||
if pre_stages is not None:
|
if pre_stages is not None:
|
||||||
for stage, params in pre_stages:
|
for stage, pre_params, pre_opts in pre_stages:
|
||||||
chain.append((stage, params))
|
chain.append((stage, pre_params, pre_opts))
|
||||||
|
|
||||||
upscale_opts = {
|
upscale_opts = {
|
||||||
"upscale": upscale,
|
"upscale": upscale,
|
||||||
|
@ -118,7 +118,7 @@ def stage_upscale_correction(
|
||||||
logger.warn("unknown upscaling order: %s", upscale.upscale_order)
|
logger.warn("unknown upscaling order: %s", upscale.upscale_order)
|
||||||
|
|
||||||
if post_stages is not None:
|
if post_stages is not None:
|
||||||
for stage, params in post_stages:
|
for stage, post_params, post_opts in post_stages:
|
||||||
chain.append((stage, params))
|
chain.append((stage, post_params, post_opts))
|
||||||
|
|
||||||
return chain
|
return chain
|
||||||
|
|
Loading…
Reference in New Issue