Skip to content

Use 3rd party "decorator" module to fix introspection for decorated functions #103

@bitprophet

Description

@bitprophet

Description

Some internal functions are decorated by @needs_host or other decorators, and thus lose their ability to be introspected, including by Sphinx autodoc. This makes me sad.

Thankfully, the decorator module has ways to work around this, and looks quite useful. It will add another external dependency but I don't think that's enough of a drawback to be a big concern.

See also an email to me from Matt Wilson dated 2009-09-09 about @needs_host, which is where he informed me about the module in question.


Originally submitted by Jeff Forcier (bitprophet) on 2009-11-11 at 11:49pm EST

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions