Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move root clazz lookup to a separate method #1090

Merged
merged 2 commits into from
Nov 9, 2024

Conversation

leo-b
Copy link
Contributor

@leo-b leo-b commented Nov 6, 2024

As described in #767, I need some kind of dynamic hook to determine the class of the root element.

My PR #766 got rejected, my next approach is to simply move the root clazz lookup code to a separate method in order to be able to extend it by subclassing.

@leo-b leo-b force-pushed the xsdata-root-clazz branch 2 times, most recently from a663972 to 66a576b Compare November 6, 2024 13:37
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (52a8f8d) to head (89324c1).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1090   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          115       115           
  Lines         9276      9279    +3     
  Branches      1417      1417           
=========================================
+ Hits          9276      9279    +3     

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

@leo-b leo-b force-pushed the xsdata-root-clazz branch from 66a576b to 7dad91b Compare November 6, 2024 17:38
"""
Obtain the root clazz, maybe from the provided clazz.

:param clazz: Root class type, if it's missing look for any
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use google style docstrings

Copy link

sonarqubecloud bot commented Nov 9, 2024

Copy link
Owner

@tefra tefra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @leo-b

@tefra tefra merged commit 6e3f505 into tefra:main Nov 9, 2024
14 checks passed
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.

2 participants