stilt.FootprintConfig.override#

classmethod FootprintConfig.override(block, own)[source]#

Return a variant’s footprint settings: the block’s, changed by the variant’s own.

A grid mapping updates the block’s grid field by field, so a variant can change only the resolution. A variant that sets its own geometry drops the block’s grid unless it sets grid too, so the grid is derived from its geometry.

Raises:

ValueError – If the variant changes part of a grid that is derived from the block’s geometry. That grid is not known until the geometry is read.

Return type:

dict[str, Any]

Parameters: