prescription.sections.base#

BaseSection ABC for prescription sections.

Kramer Harrison, 2026

Classes

BaseSection()

Generates one Section of the prescription document from an Optic.

class BaseSection[source]#

Generates one Section of the prescription document from an Optic.

Sections are stateless with respect to the optic — build() receives the optic fresh each call, making sections trivially testable.

abstractmethod build(optic: Optic) Section[source]#

Build and return a document Section for the given optic.

Parameters:

optic – The optical system to describe.

Returns:

A populated Section ready for rendering.