Skip to content

Kirin's Python binding @wraps() decorator does not preserve docstring or function signature #613

@cduck

Description

@cduck

This is very annoying when working in a REPL-based IDE (specifically Jupyter). I cannot read the doc strings without browsing the source code directly.

Example:

Image

A workaround to see the type info (but not the docstring):

Image

The wrapping code is here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: pythonArea: issues and pull requests related to Python code.category: enhancementCategory: this is an enhancement of an existing feature.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions