Skip to content

fix: fix angstrom enum#296

Merged
tlambert03 merged 3 commits into
mainfrom
fix-angstrom
Nov 25, 2025
Merged

fix: fix angstrom enum#296
tlambert03 merged 3 commits into
mainfrom
fix-angstrom

Conversation

@tlambert03

Copy link
Copy Markdown
Member

fixes #295 ...

cause:
xsdata 24.4 introduced a change in xsdata/codegen/models.py in the Attr.__post_init__ method:

  # xsdata 24.2.1 (old - works):
  def __post_init__(self):
      self.local_name = self.name

  # xsdata 24.4+ (new - breaks):
  def __post_init__(self):
      if not self.local_name:
          self.local_name = self.name

      if text.alnum(self.name) == "":
          self.name = "_".join(unicodedata.name(char) for char in self.name)

@tlambert03 tlambert03 changed the title fix angstrom enum fix: fix angstrom enum Nov 25, 2025
@codecov

codecov Bot commented Nov 25, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.62%. Comparing base (83ce006) to head (4617545).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #296   +/-   ##
=======================================
  Coverage   95.62%   95.62%           
=======================================
  Files          24       24           
  Lines        1120     1120           
=======================================
  Hits         1071     1071           
  Misses         49       49           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codspeed-hq

codspeed-hq Bot commented Nov 25, 2025

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #296 will not alter performance

Comparing fix-angstrom (4617545) with main (83ce006)

Summary

✅ 9 untouched

@tlambert03 tlambert03 enabled auto-merge (squash) November 25, 2025 23:36
@tlambert03 tlambert03 merged commit 7d64d5f into main Nov 25, 2025
45 checks passed
@tlambert03 tlambert03 deleted the fix-angstrom branch November 25, 2025 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ANGSTROM changed to LATIN_CAPITAL_LETTER_A_WITH_RING_ABOVE

1 participant