Skip to content
New issue

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

Look into way to mass rewrite add parameter #4458

Open
jenshnielsen opened this issue Aug 2, 2022 · 0 comments
Open

Look into way to mass rewrite add parameter #4458

jenshnielsen opened this issue Aug 2, 2022 · 0 comments

Comments

@jenshnielsen
Copy link
Collaborator

jenshnielsen commented Aug 2, 2022

Once #4412 lands it would be nice to transform all call of the form

self.add_parameter(name="foo", ...)

to

self.foo = self._add_parameter(name="foo" ....)
"""
Parameter foo
"""

So that parameters are documented, and completion works as expected.

Investigate how much effort it would take to do this using ast or similar.
See https://stackoverflow.com/questions/36022935/rewriting-code-with-ast-python for inspiration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant