Skip to content

Request: Fix to remove docstrings in stubs (PYI021/docstring-in-stub) #14123

@Avasam

Description

@Avasam

I'd like PYI021 to provide an autofix (even an "unsafe" one is fine by me) to easily remove docstrings that may be generated by other tools. For example, https://github.com/microsoft/python-type-stubs/tree/main/stubs/sympy-stubs#remove-doc-comments has a custom script to remove docstrings that could be replaced by Ruff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedReady for implementationfixesRelated to suggested fixes for violationshelp wantedContributions especially welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions