Skip to content

doctest-modules doesn't recognise docstring examples in decorated functions #1844

@fredjaya

Description

@fredjaya

Running pytest --doctest-modules -v doesn't find docstrings in functions decorated with @define_app (e.g. app.align.cogent3_score).

However, it works fine in @define_app classes where the docstrings are in the __init__ (e.g. app.align.progressive_align).

Specfically, composable._class_from_func does not seem to be correctly propagating docstrings.

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