Skip to content

Commit 9ed6663

Browse files
committed
Docs: Clarify callback descriptions.
1 parent 98c1198 commit 9ed6663

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/modules.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ registrar.register_allow_entity_creation_hook(
199199

200200
Receives eid and Task, may return new DataPointTasks.
201201

202-
The callback is registered using the
202+
Callbacks which are called once when an entity is created are registered using the
203203
[`register_on_entity_creation_hook`][dp3.common.callback_registrar.CallbackRegistrar.register_on_entity_creation_hook] method.
204204
Required signature is `Callable[[str, DataPointTask], list[DataPointTask]]`.
205205

@@ -240,7 +240,7 @@ registrar.register_on_entity_creation_hook(
240240

241241
#### Attribute hooks
242242

243-
Callbacks are registered using the
243+
Callbacks that are called on every incoming datapoint of an attribute are registered using the
244244
[`register_on_new_attr_hook`][dp3.common.callback_registrar.CallbackRegistrar.register_on_new_attr_hook] method.
245245
The callback allways receives eid, attribute and Task, and may return new DataPointTasks.
246246
The required signature is `Callable[[str, DataPointBase], Union[None, list[DataPointTask]]]`.

0 commit comments

Comments
 (0)