grapher.FromWorkbook

Metadata marker: resolve domain from the current cached workbook value.

Usage

Source

grapher.FromWorkbook()

Use Annotated[T, FromWorkbook()] in the constraints schema to derive a singleton domain at config-build time instead of hardcoding a Literal. This eliminates maintenance when the workbook template changes, at the cost of a slower DynamicRefConfig.from_constraints_and_workbook call (the workbook must be opened and each marked cell read via a streaming parser).