dapper91 / pydantic-xml

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

PEP-681 support #178

Closed dapper91 closed 2 months ago

dapper91 commented 3 months ago

PEP 681 proposes a way to indicate that a class support dataclass-like semantics. It helps static type checkers like mypy, pylance (pyright) to check a class instantiation.

Fixes the issue.

codecov-commenter commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.06%. Comparing base (f26b66f) to head (12c9d79).

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #178 +/- ## ========================================== + Coverage 92.04% 92.06% +0.01% ========================================== Files 27 27 Lines 1534 1537 +3 ========================================== + Hits 1412 1415 +3 Misses 122 122 ``` | [Flag](https://app.codecov.io/gh/dapper91/pydantic-xml/pull/178/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/178/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Dmitry+Pershin) | `92.06% <100.00%> (+0.01%)` | :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.