Skip to content

Commit 7abd8a8

Browse files
committed
Add missing docstrings
1 parent 7ec0238 commit 7abd8a8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

flocker/control/_diffing.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,24 +136,36 @@ def evolver():
136136

137137

138138
class _ISetType(Interface):
139+
"""
140+
The operations that can be performed when transforming a ``PSet`` object.
141+
"""
139142
def add(item):
140143
"""
144+
Add ``item`` to set.
141145
"""
142146

143147
def remove(item):
144148
"""
149+
Remove ``item`` from set.
145150
"""
151+
146152
classImplements(PSet, _ISetType)
147153

148154

149155
class _IRecordType(Interface):
150-
def set(item):
156+
"""
157+
The operations that can be performed when transforming a ``PSet`` object.
158+
"""
159+
def set(key, value):
151160
"""
161+
Add or replace the ``key`` in a ``PMap`` with ``value``.
152162
"""
153163

154164
def remove(item):
155165
"""
166+
Remove the ``key`` in a ``PMap``.
156167
"""
168+
157169
classImplements(PMap, _IRecordType)
158170
classImplements(PClass, _IRecordType)
159171

0 commit comments

Comments
 (0)