Skip to content

Commit

Permalink
Doc fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Warren Smith committed Nov 23, 2016
1 parent db50b5e commit e933bad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions staticmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
... CAT = 'Fluffy', "Man's gracious overlord", True
>>>
The entire collection of members can be retrieved with the :py:meth:`~StaticModel.all` method.
The entire collection of members can be retrieved with the :py:meth:`members.all` method.
>>> from pprint import pprint as pp
>>>
Expand All @@ -41,7 +41,7 @@
<Animal.CAT: name='Fluffy', description="Man's gracious overlord", domesticated=True>]
>>>
**NOTE:** These :py:class:`StaticModel` methods return generators:
**NOTE:** These :py:class:`StaticModel.members` methods return generators:
- :py:meth:`~StaticModel.members.all`
- :py:meth:`~StaticModel.members.filter`
Expand Down Expand Up @@ -107,13 +107,13 @@
Member access methods
*********************
A model member may be retrieved using the model's :py:meth:`~StaticModel.get` method.
A model member may be retrieved using the model's :py:meth:`members.get` method.
>>> Mammal.members.get(name='Bambi')
<Mammal.DEER: name='Bambi', description='Likes to hide', domesticated=False>
>>>
Model members may be filtered with the model's :py:meth:`~StaticModel.filter` method.
Model members may be filtered with the model's :py:meth:`members.filter` method.
>>> pp(list(Animal.members.filter(domesticated=True)))
[<Animal.DOG: name='Spot', description="Man's best friend", domesticated=True>,
Expand Down

0 comments on commit e933bad

Please sign in to comment.