Skip to content

Commit d160e4f

Browse files
committed
some doc tweaks
1 parent b52277e commit d160e4f

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

effect/testing.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,10 @@ def resolve_stubs(dispatcher, effect):
168168

169169
class EQDispatcher(object):
170170
"""
171-
A dispatcher that looks up intents by equality and performs them by
172-
returning constant values.
171+
An equality-based (constant) dispatcher.
172+
173+
This dispatcher looks up intents by equality and performs them by returning
174+
an associated constant value.
173175
174176
Users provide a mapping of intents to results, where the intents are
175177
matched against the intents being performed with a simple equality check
@@ -198,8 +200,10 @@ def __call__(self, intent):
198200

199201
class EQFDispatcher(object):
200202
"""
201-
A dispatcher that looks up intents by equality and performs them by
202-
invoking a provided function.
203+
An Equality-based function dispatcher.
204+
205+
This dispatcher looks up intents by equality and performs them by invoking
206+
an associated function.
203207
204208
Users provide a mapping of intents to functions, where the intents are
205209
matched against the intents being performed with a simple equality check

0 commit comments

Comments
 (0)