Skip to content

Commit

Permalink
DOC: Don't include "pass" in interface defs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Sanderson committed Sep 5, 2018
1 parent adcd090 commit b329e97
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/why.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,17 @@ definition for a simple `Key-Value Store`_ might look like this:
class KeyValueStore(interface.Interface):
def get(self, key):
pass
"""Get the value for ``key``.
"""
def set(self, key, value):
pass
"""Set the value for ``key`` to ``value``.
"""
def delete(self, key):
"""Delete the value for ``key``.
"""
Why Are Interfaces Useful?
~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit b329e97

Please sign in to comment.