Fix macro params being marked to load

These are being used as variables within the macro itself so these
should be marked as parameters so they do not escape the scope of the
block.
This commit is contained in:
Kevin 2020-05-10 17:02:21 -04:00
parent b091d41a54
commit c5bcac08bd

View File

@ -187,7 +187,7 @@ def parse_block_macro(ast):
for kwarg in definition.kwargs:
params.append(
nodes.Name(kwarg.key, "load")
nodes.Name(kwarg.key, "param")
)
defaults.append(kwarg.value)