Closed simisimon closed 1 year ago
Hi I am a bit confused, for a function name, what value do you think we should link the name?
I would expect that the ast.FunctionDef
is assigned to the variable/callable preprocessing
. So, the resulting const_dict would look like this: {('preprocessing', 0): <ast.FunctionDef object at ..... >, ('v', 0): <ast.Call object at 0x0000016BCDE2AAC0>}
Thanks, it looks you have implemented that. If possible, can you please create a PR?
I already created a PR and I also linked it to this issue here.
I already created a PR and I also linked it to this issue here.
Thanks for your contribution!
In the following example, a callable is passed as a variable to a parameter:
Running Scalpel results into the following
const_dict
:In this case, the function def should be assigned to the variable
preprocessing
instead ifNone
.