Skip to content

Remove types from docstrings and rely on sphinx-autodoc-typehints for API docs #126

@sfmig

Description

@sfmig

Is your feature request related to a problem? Please describe.
Right now we duplicate types in both the function signature and the docstring. It seems like the docstring type takes precedence over the function signature and external types are not clickable in the API docs if they use aliases (np.ndarray rather than numpy.ndarray)

Describe the solution you'd like
@lochhh pointed out over at movement that we use sphinx-autodoc-typehints which should allow us to rely on the types in the function signature as single source of truth.

So we should review the docstrings in the code and remove the duplication, retaining the function signature types only.

Describe alternatives you've considered
\

Additional context
\

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions