Skip to content
This repository was archived by the owner on Mar 31, 2020. It is now read-only.

Commit 3f2c80f

Browse files
committed
Changed docstrings code snippet format.
1 parent 2b15cb2 commit 3f2c80f

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

src/animation.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,17 @@ class Coord(NamedTuple):
1212
Coord overloads many of the numeric operators by applying
1313
it to the x and y value.
1414
15-
param
15+
param:
1616
x: float -- X position.
17-
y: float -- Y position
17+
y: float -- Y position.
1818
19-
# Usage
20-
The operators will behave like you applied the to each value.
21-
```py
19+
Example::
20+
21+
```
2222
c1 = c2 = Coord(1, 1)
2323
c1 + c2
2424
>>> Coord(2, 2)
25-
```
26-
For convenience, integers are accepted as well
27-
```py
25+
# For convenience, integers are accepted as well
2826
c1 = Coord(1, 1)
2927
c1 + 1 # 1 is cast to Coord(1, 1)
3028
>>> Coord(2, 2)

0 commit comments

Comments
 (0)