diff options
author | jaseg <git@jaseg.de> | 2024-07-19 19:20:51 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2024-07-19 19:20:51 +0200 |
commit | ea2664219d108e0426c22434bb3262cb1e53579c (patch) | |
tree | 465b1d55b2a611642177c835fd17ea752230729a /gerbonara/cad/kicad/schematic.py | |
parent | be25b860a975a3a65fc9e434aac332950ace83bb (diff) | |
download | gerbonara-ea2664219d108e0426c22434bb3262cb1e53579c.tar.gz gerbonara-ea2664219d108e0426c22434bb3262cb1e53579c.tar.bz2 gerbonara-ea2664219d108e0426c22434bb3262cb1e53579c.zip |
kicad: Make reprs more reasonable
This excludes parent back-links from reprs, which would previously blow
up the repr of many objects.
Diffstat (limited to 'gerbonara/cad/kicad/schematic.py')
-rw-r--r-- | gerbonara/cad/kicad/schematic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/cad/kicad/schematic.py b/gerbonara/cad/kicad/schematic.py index bf32d11..9e7c6d4 100644 --- a/gerbonara/cad/kicad/schematic.py +++ b/gerbonara/cad/kicad/schematic.py @@ -357,7 +357,7 @@ class SymbolInstance: # three other uses of the same symbol in this schematic. instances: Named(Array(SymbolCrosslinkProject)) = field(default_factory=list) _ : SEXP_END = None - schematic: object = None + schematic: object = field(repr=False, default=None) def __after_parse__(self, parent): self.schematic = parent @@ -496,7 +496,7 @@ class Subsheet: _ : SEXP_END = None sheet_name: object = field(default_factory=lambda: DrawnProperty('Sheetname', '')) file_name: object = field(default_factory=lambda: DrawnProperty('Sheetfile', '')) - schematic: object = None + schematic: object = field(repr=False, default=None) def __after_parse__(self, parent): self.sheet_name, self.file_name = self._properties |