API reference

python:irx:irx.extensions.handlers.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

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

Returns

Type: HandlerContribution

Search documentation

Type to search.