API reference
python:irx:irx.extensions.contribute
function contribute
contribute(identity: str, owner: str, phase: Phase, value_type: type[ValueT], context_type: type[ContextT], implementation: Callable[[ValueT, ContextT], None], *, replaces: str | None = None) -> HandlerContribution
Source: packages/irx/src/irx/extensions/handlers.py:171
Declared as: python:irx:irx.extensions.handlers.contribute
Export a typed function or bound provider method explicitly.
Providers may inherit implementations and export overridden methods with replaces naming the parent contribution. No class dictionary is scanned. Providers must not capture compilation state; services arrive at invocation.
Parameters
-
identity — Type: str
-
owner — Type: str
-
phase — Type: Phase
-
value_type — Type: type[ValueT]
-
context_type — Type: type[ContextT]
-
implementation — Type: Callable[[ValueT, ContextT], None]
-
replaces — Type: str | None
Returns
Type: HandlerContribution