Skip to content

DOC201 / D400 shouldn't raise on a @wraps()-decorated function #21566

@tigerhawkvok

Description

@tigerhawkvok

Summary

... optionally, unless the wrapped function is itself missing a docstring.

But in any case, a wrapped function isn't really logically independent, and depending on your configuration, can report the wrapped function's docstring anyway (though noteably VSCode doesn't do this unless you wrap wraps to share-down func.__doc__)

Version

ruff 0.14.6 (59c6cb5 2025-11-21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-infoMore information is needed from the issue author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions