summaryrefslogtreecommitdiff
path: root/gerbonara/cad/kicad/primitives.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2024-07-19 19:17:46 +0200
committerjaseg <git@jaseg.de>2024-07-19 19:17:46 +0200
commit754c9557e52a5ba9704c8fb3af4175a36d37110e (patch)
tree8d16534570b33d51a1d64e482f23a64a55ca2d5a /gerbonara/cad/kicad/primitives.py
parentd7efa577320cbb1af3d4399b008b5901309b5ea4 (diff)
downloadgerbonara-754c9557e52a5ba9704c8fb3af4175a36d37110e.tar.gz
gerbonara-754c9557e52a5ba9704c8fb3af4175a36d37110e.tar.bz2
gerbonara-754c9557e52a5ba9704c8fb3af4175a36d37110e.zip
kicad: Make point lists more ergonomic
This commit removes the unnecessary "PointList" wrapper class, and just puts regular python lists in its place.
Diffstat (limited to 'gerbonara/cad/kicad/primitives.py')
-rw-r--r--gerbonara/cad/kicad/primitives.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gerbonara/cad/kicad/primitives.py b/gerbonara/cad/kicad/primitives.py
index 5be0422..11da6c6 100644
--- a/gerbonara/cad/kicad/primitives.py
+++ b/gerbonara/cad/kicad/primitives.py
@@ -135,18 +135,18 @@ class ZoneFill:
class FillPolygon:
layer: Named(str) = ""
island: Wrap(Flag()) = False
- pts: PointList = field(default_factory=PointList)
+ pts: PointList = field(default_factory=list)
@sexp_type('fill_segments')
class FillSegment:
layer: Named(str) = ""
- pts: PointList = field(default_factory=PointList)
+ pts: PointList = field(default_factory=list)
@sexp_type('polygon')
class ZonePolygon:
- pts: PointList = field(default_factory=PointList)
+ pts: PointList = field(default_factory=list)
@sexp_type('zone')
@@ -199,7 +199,7 @@ class Zone:
@sexp_type('polygon')
class RenderCachePolygon:
- pts: PointList = field(default_factory=PointList)
+ pts: PointList = field(default_factory=list)
@sexp_type('render_cache')