Skip to content

Look into way to mass rewrite add parameter  #4458

@jenshnielsen

Description

@jenshnielsen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions