makeprov.meta

Opt-in provenance attributes for rule arguments.

Classes

Generic()

Abstract base class for generic types.

ProvMeta()

Annotate a rule argument to record its value, e.g. model: ProvMeta[str].

TypeVar

Type variable.

class makeprov.meta.ProvMeta

Bases: Generic[T]

Annotate a rule argument to record its value, e.g. model: ProvMeta[str].

The wrapped function receives the original value, not a ProvMeta object. Only JSON-serializable values are supported.