Skip to content

Python decorated function docstring placement #9

@ghost

Description

When creating docstrings for decorated python functions or classes, the docstrings sometimes are inserted on the wrong line.
Example:

@dataclass()  
"""WRONG: docstring sometimes inserted here"""  
class Foo:   
    """RIGHT: correct docstring position"""  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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