Skip to main content

annotations

superduper.base.annotations

Source code

trigger​

trigger(*event_types: Sequence[str],
depends: Union[Sequence[str],
str] = (),
requires: Union[Sequence[str],
str] = ())
ParameterDescription
event_typesEvent to trigger the method.
dependsTriggers which should run before this method.
requiresDataclass parameters/ attributes which should be available to trigger the method

Decorator to trigger a method when an event is detected.