diff options
author | jaseg <git@jaseg.de> | 2024-07-19 14:07:29 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2024-07-19 14:07:29 +0200 |
commit | 8e337c0506ee930cd5edb265df4191d4efba8d64 (patch) | |
tree | 24c2ce16988f34d1d58e8b186ecae36ffc5fde32 | |
parent | b23cafbfd45bdf5d010c5a203e6873e573f145fb (diff) | |
download | gerbonara-8e337c0506ee930cd5edb265df4191d4efba8d64.tar.gz gerbonara-8e337c0506ee930cd5edb265df4191d4efba8d64.tar.bz2 gerbonara-8e337c0506ee930cd5edb265df4191d4efba8d64.zip |
kicad: Small fixes to 8.99 compatibility
-rw-r--r-- | gerbonara/cad/kicad/base_types.py | 2 | ||||
-rw-r--r-- | gerbonara/tests/test_kicad_symbols.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/cad/kicad/base_types.py b/gerbonara/cad/kicad/base_types.py index 0c31404..69042fc 100644 --- a/gerbonara/cad/kicad/base_types.py +++ b/gerbonara/cad/kicad/base_types.py @@ -345,8 +345,8 @@ class Justify: @sexp_type('effects') class TextEffect: font: FontSpec = field(default_factory=FontSpec) - hide: OmitDefault(Named(LegacyCompatibleFlag())) = False justify: OmitDefault(Justify) = field(default_factory=Justify) + hide: OmitDefault(Named(LegacyCompatibleFlag())) = False class TextMixin: diff --git a/gerbonara/tests/test_kicad_symbols.py b/gerbonara/tests/test_kicad_symbols.py index 15d2082..d97cc6f 100644 --- a/gerbonara/tests/test_kicad_symbols.py +++ b/gerbonara/tests/test_kicad_symbols.py @@ -57,7 +57,7 @@ def test_round_trip(kicad_library_file, tmpfile): # Some symbol files contain ints where floats should be. # For instance, there is some disagreement as to whether rotation angles are ints or floats, and the spec doesn't say. - FLOAT_INT_ISSUES = ['offset', 'at', 'width', 'xy', 'start', 'mid', 'end', 'center'] + FLOAT_INT_ISSUES = ['offset', 'at', 'width', 'xy', 'start', 'mid', 'end', 'center', 'length'] if any(original.startswith(f'({name}') and stage1.startswith(f'({name}') for name in FLOAT_INT_ISSUES): fix_floats = lambda s: re.sub(r'\.0+(\W)', r'\1', s) original, stage1 = fix_floats(original), fix_floats(stage1) |