Skip to content

Commit

Permalink
Vector2: Add cross-references to the relevant protocols in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
nbraud committed Mar 23, 2019
1 parent e815e72 commit a52160a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ppb_vector/vector2.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ class Vector2:
:py:class:`Vector2` implements many convenience features, as well as
useful mathematical operations for 2D geometry and linear algebra.
:py:class:`Vector2` acts as an iterable and sequence, allowing usage like
unpacking and indexing:
:py:class:`Vector2` implements :py:class:`Sequence
<collections.abc.Sequence>` (and subsequently :py:class:`Iterable
<collections.abc.Iterable>`), allowing usage like unpacking and indexing:
>>> x, y = Vector2(1, 2)
>>> x
Expand Down

0 comments on commit a52160a

Please sign in to comment.