We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for example:
from codetransformer import CodeTransformer, pattern from codetransformer.instructions import CALL_FUNCTION def add(*args): return sum([*args]) class EmptyTransformer(CodeTransformer): @pattern(CALL_FUNCTION) def _call(self, call): yield call transformer = EmptyTransformer() new_add = transformer(add) add() => 0 new_add() => TypeError: add() missing 1 required positional argument: 'args'
The text was updated successfully, but these errors were encountered:
Good find, it looks like we messed up how we represented this information between our Code object and the transformer.
Code
I opened a PR to fix this here: #68
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
for example:
The text was updated successfully, but these errors were encountered: