dapper91 / pydantic-xml

python xml for humans
https://pydantic-xml.readthedocs.io
The Unlicense
141 stars 14 forks source link

Pydantic 2.6 compatibility fixes #169

Closed dapper91 closed 5 months ago

dapper91 commented 5 months ago

Starting from pydantic-core 2.15.0 tuple-positional and tuple-variable types had been merged into a single tuple type to be able to handle variadic tuples (PEP-646). Since that point is not possible to separate tuple into homogeneous and heterogeneous collections by its type but only by presence of the variadic_item_index field in the schema.

Fixes the issue https://github.com/dapper91/pydantic-xml/issues/167.

codecov-commenter commented 5 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (1dde289) 92.00% compared to head (896ea69) 92.04%.

Files Patch % Lines
pydantic_xml/serializers/factories/tuple.py 90.00% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #169 +/- ## ========================================== + Coverage 92.00% 92.04% +0.03% ========================================== Files 26 27 +1 Lines 1514 1534 +20 ========================================== + Hits 1393 1412 +19 - Misses 121 122 +1 ``` | [Flag](https://app.codecov.io/gh/dapper91/pydantic-xml/pull/169/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Dmitry+Pershin) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/dapper91/pydantic-xml/pull/169/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Dmitry+Pershin) | `92.04% <96.55%> (+0.03%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Dmitry+Pershin#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.