Skip to content

Docs: docstrings for attributes (not possible) #844

Open

Description

@josef-pkt

Attributes cannot have a docstring themselves in python

http://stackoverflow.com/questions/3051241/how-to-document-class-attributes-in-python

In the model we work largely with descriptors and properties which can hold their own docstring.

I'm writing a results class for a statistical test that just assigns all results as attributes. The only way to document them is in the class docstring, unless we want to convert them all to properties.

(candidate for a statsmodels docstandard in developer docs, when we have one, and we settle on a pattern)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions