Skip to main content

series_bindings.suggest_validation_domains()

Report the domain each validated cell’s data validation implies.

Usage

Source

series_bindings.suggest_validation_domains(
    workbook, addresses=None, *, max_cells=DEFAULT_MAX_RANGE_CELLS
)

Parameters

workbook: Path | str

Workbook to read.

addresses: Iterable[str] | None = None

Restrict the report to these cells (any quoting / $ spelling). Cells without a validation are absent. None reports every validated cell on every sheet.

max_cells: int = DEFAULT_MAX_RANGE_CELLS
Upper bound on cells expanded from all sqrefs when addresses is None.

Returns

tuple[ValidationDomainSuggestion, …]
Suggestions ordered by sheet, row, column, then rule.

Raises

ValueError
addresses is None and validations cover more than max_cells cells.