There is a typo in the following line: https://github.com/KLayout/klayout/blob/6a27a046ba1413fd6bbea4d6a39e532e793bf806/src/drc/drc/built-in-macros/_drc_cop_integration.rb#L558 It should say `rectangles`.