Skip to content

dataclass annotated attribute docstrings are incorrectly documented as class variables #890

@glyph

Description

@glyph

A class that looks like this:

from dataclasses import dataclass

@dataclass
class Data:
    attribute: str
    "the 'attribute' data attribute of 'Data'"

will be documented as if Data.attribute is a class variable, when the dataclass decorator makes it an instance variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    astbuilderA substantive change is required in the astbuilder flow in order to fix this issueenhancementextensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions