Base

Provides KicadSchExpr class which we use as a base for all schematic related KiCad s-expressions.

class edea.kicad.schematic.base.KicadSchExpr

Bases: KicadExpr

A KiCad schematic expression.

kicad_expr_tag_name: ClassVar[Any] = None
classmethod validate_at_rotation(value)

In schematic files only four rotations are exposed in the KiCad GUI. We use a Literal type for these so need to convert to int manually. We’ve also seen unecessary rotations such as 900° in the wild hence % 360.