Skip to content

Commit cfd40c4

Browse files
committed
DOC: Document requirements for defaults more explicitly.
1 parent 7ef179a commit cfd40c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/usage.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ Implementors are not required to implement methods with defaults:
137137
# get_all(self) will automatically be copied from the interface default.
138138
139139
Default implementations should always be implemented in terms of other
140-
interface methods.
140+
interface methods. This ensures that the default is valid for any
141+
implementation of the interface.
141142

142143
In Python 3, :class:`default` will show a warning if a default implementation
143144
uses non-interface members of an object:

0 commit comments

Comments
 (0)