Skip to content

Document docstrings for classes created with make_class - #1623

Open
user01010111 wants to merge 1 commit into
python-attrs:mainfrom
user01010111:docs/make-class-docstring
Open

Document docstrings for classes created with make_class#1623
user01010111 wants to merge 1 commit into
python-attrs:mainfrom
user01010111:docs/make-class-docstring

Conversation

@user01010111

Copy link
Copy Markdown

Show how to set a generated class's docstring using class_body, and note that assigning __doc__ afterwards works too. Both approaches expose the docstring through help().

Closes #1309.

Validation: documentation build and all 473 doctests pass; 16 existing make_class tests pass. Both approaches were also checked with help(). Applicable spelling and whitespace hooks pass.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding docstrings to classes created with make_class

1 participant