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:
parent
b091d41a54
commit
c5bcac08bd
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user