Skip to content
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

Properties don't need @return annotations #46

Merged
merged 2 commits into from
Mar 24, 2015

Conversation

adiroiban
Copy link
Member

The docstring for a property should basically be what would go in the @return annotation for a normal method, I don't think there is any reason to produce a warning in this case.


Imported from Launchpad using lp2gh.

@adiroiban
Copy link
Member

I tried to to fix this.

I have also added an exceptions for setter properties as I don't think that they need to document their value... and I would say that setter don't need a docstring as the getter should already document it.

Please take a look and let me know if code is ok.

Thanks!

@glyph
Copy link
Member

glyph commented Mar 24, 2015

Looks pretty good. Thanks for a nice, small pull request :).

glyph added a commit that referenced this pull request Mar 24, 2015
@glyph glyph merged commit ffdde96 into master Mar 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants