askiff.common.PinTypePCB

class askiff.common.PinTypePCB

Bases: askiff._auto_serde.AutoSerde

Inheritance diagram of askiff.common.PinTypePCB

Represents the type/function and connection state of a pin in a PCB

classmethod deserialize(sexp: askiff._sexpr.GeneralizedSexpr) PinTypePCB

Deserializes a KiCad sexpr representation of a pin type into a PinTypePCB object.

Parameters:
sexp : askiff._sexpr.GeneralizedSexpr

Return type:

PinTypePCB

serialize() askiff._sexpr.GeneralizedSexpr

Serializes the pin type, appending “+no_connect” to the base value if the pin is not connected and is not already a no-connect pin.

Return type:

askiff._sexpr.GeneralizedSexpr

base : PinType

Base pin type for the PCB pin.

connected : bool = False

Whether the pin is connected to a net (on schematic)


Last update: 2026-05-05