Skip to content

Include annotations for class properties #175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 29, 2020

Conversation

postlund
Copy link
Contributor

Type annotations (when enabled) are not included in the generated documentation for members in classes marked with @property. This is an attempt to fix that.

@kernc kernc force-pushed the prop_annotations branch from 461882c to 86abc5f Compare March 29, 2020 00:15
@kernc
Copy link
Member

kernc commented Mar 29, 2020

Thank you. I'll try to get a release out soon.

@kernc kernc merged commit b8758dd into pdoc3:master Mar 29, 2020
@postlund postlund deleted the prop_annotations branch March 29, 2020 07:07
@postlund
Copy link
Contributor Author

postlund commented Mar 29, 2020

Awesome, thanks! 👍

kernc added a commit that referenced this pull request Apr 14, 2020
kernc added a commit that referenced this pull request Apr 16, 2020
Now including global variables.

PEP 526 recommends instance variables should be type annotated
on the class. With source parsing involved, that's the only case
we opt to support.

Fixes: #121

Refs:
* 62c66cb
* b8758dd
* #175
kernc added a commit that referenced this pull request Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants