Skip to content

Rewrite properties documentation #7

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 7 commits into from
Sep 24, 2020

Conversation

brentru
Copy link
Member

@brentru brentru commented Jun 2, 2020

Rewrite property documentation to treat them like attributes per @tannewt's advice.

@brentru brentru requested a review from a team June 2, 2020 15:17
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for following up with this!

Comment on lines 376 to 378
def gps(self, gps_on=False):
"""Sets GPS module power, parses returned buffer.
"""Enables or disables GPS module.
:param bool gps_on: Enables the GPS module, disabled by default.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A param here doesn't make sense because it's a setter. The default argument is unneeded because it's always provided.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I think this doc string is ignored in favor of the getter's doc string.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tannewt Would this be the case with all setters?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thanks. Did a pass removing docstrings + parameters for setters.

@kattni
Copy link
Contributor

kattni commented Aug 10, 2020

@brentru Please follow up on this PR. Thanks!

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good! Thank you!

@tannewt tannewt merged commit 0343cb5 into adafruit:master Sep 24, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 25, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_FONA to 2.1.0 from 2.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_FONA#7 from brentru/update-property-docstrings

Updating https://github.com/adafruit/Adafruit_CircuitPython_Requests to 1.7.2 from 1.7.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_Requests#36 from tannewt/check_send
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.

4 participants