Skip to content

Commit 738790b

Browse files
xsedla1oCopilot
andcommitted
Docs: update callback registrar docstring
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5c93053 commit 738790b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dp3/common/callback_registrar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,9 @@ def register_correlation_hook_with_master_record(
392392
`entity_type` and attribute specifications are validated, `ValueError` is raised on failure.
393393
394394
Args:
395-
hook: `hook` callable should expect entity type as str;
396-
its current values, including linked entities, as dict;
397-
and its master record as dict.
395+
hook: `hook` callable should have the signature
396+
`hook(entity_type: str, current_values: dict, master_record: dict)`.
397+
where `current_values` includes linked entities.
398398
Can optionally return a list of DataPointTask objects to perform.
399399
entity_type: specifies entity type
400400
depends_on: each item should specify an attribute that is depended on

0 commit comments

Comments
 (0)