from .error import (KiPlotConfigurationError) from kiplot.macros import macros, pre_class # noqa: F401 @pre_class class Check_Zone_Fills(BasePreFlight): # noqa: F821 """ [boolean=false] Zones are filled before doing any operation involving PCB layers """ def __init__(self, name, value): super().__init__(name, value) if not isinstance(value, bool): raise KiPlotConfigurationError('must be boolean') self._enabled = value def run(self): pass def apply(self): BasePreFlight._set_option('check_zone_fills', self._enabled) # noqa: F821