Skip to content

Commit b329e97

Browse files
author
Scott Sanderson
committed
DOC: Don't include "pass" in interface defs.
1 parent adcd090 commit b329e97

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/why.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@ definition for a simple `Key-Value Store`_ might look like this:
1818
class KeyValueStore(interface.Interface):
1919
2020
def get(self, key):
21-
pass
21+
"""Get the value for ``key``.
22+
"""
2223
2324
def set(self, key, value):
24-
pass
25+
"""Set the value for ``key`` to ``value``.
26+
"""
27+
28+
def delete(self, key):
29+
"""Delete the value for ``key``.
30+
"""
31+
2532
2633
Why Are Interfaces Useful?
2734
~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)