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

Minor docs improvements #173

Merged
merged 6 commits into from
Jun 20, 2019
Merged

Minor docs improvements #173

merged 6 commits into from
Jun 20, 2019

Conversation

nbraud
Copy link
Collaborator

@nbraud nbraud commented Jun 9, 2019

  • Document __bool__.
  • Document in __add__ and __mul__ that the reverse operator (vector-like op vector) also exists.
  • Use the imperative form in short-form descriptions (i.e. the docstring's first line).
  • Use asserts in examples where relevant, rather than showing True or implicitly expecting users to notice an equality.
  • Other minor changes.

nbraud added 6 commits June 9, 2019 16:54
I don't believe it would make sense to have a separate entry for __radd__.
- Use a verbal sentence for the first line.
- Provide an example, with the same values as in __mul__
- Show the equivalence to __mul__ (same as scale_by)
- Use the imperative form in the description.
- Simplify the __mul__ example by using an assert
- Use the imperative form in the description.
- Simplify the examples showing the equivalence with dot and scale_by:
  use an assert rather than assume people notice the same value is produced.
- Add a reference to __truediv__
This feels more consistent, as it's not very helpful anyhow to know the choice
of unit without knowing the coordinate system (i.e. the direction angles go in).
Copy link
Member

@AstraLuma AstraLuma left a comment

Choose a reason for hiding this comment

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

bors r+

bors bot added a commit that referenced this pull request Jun 20, 2019
173: Minor docs improvements r=astronouth7303 a=nbraud

- Document `__bool__`.
- Document in `__add__` and `__mul__` that the reverse operator (`vector-like op vector`) also exists.
- Use the imperative form in short-form descriptions (i.e. the docstring's first line).
- Use asserts in examples where relevant, rather than showing `True` or implicitly expecting users to notice an equality.
- Other minor changes.

Co-authored-by: Nicolas Braud-Santoni <nicolas@braud-santoni.eu>
@bors
Copy link
Contributor

bors bot commented Jun 20, 2019

Build failed

  • Windows python:3.6-windowsservercore-1809

@AstraLuma
Copy link
Member

bors retry

bors bot added a commit that referenced this pull request Jun 20, 2019
173: Minor docs improvements r=astronouth7303 a=nbraud

- Document `__bool__`.
- Document in `__add__` and `__mul__` that the reverse operator (`vector-like op vector`) also exists.
- Use the imperative form in short-form descriptions (i.e. the docstring's first line).
- Use asserts in examples where relevant, rather than showing `True` or implicitly expecting users to notice an equality.
- Other minor changes.

Co-authored-by: Nicolas Braud-Santoni <nicolas@braud-santoni.eu>
@bors
Copy link
Contributor

bors bot commented Jun 20, 2019

Build succeeded

  • docs
  • FreeBSD PYTHON:3.6
  • FreeBSD PYTHON:3.7
  • lint
  • Linux python:3.6-slim
  • Linux python:3.7-slim
  • macOS PYTHON:3.6.8
  • macOS PYTHON:3.7.2
  • Windows python:3.6-windowsservercore-1809
  • Windows python:3.7-windowsservercore-1809

@bors bors bot merged commit d61ceb3 into ppb:master Jun 20, 2019
@nbraud nbraud deleted the docs branch June 26, 2019 03:13
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.

2 participants