reagento / adaptix

An extremely flexible and configurable data model conversion library.
https://adaptix.readthedocs.io
Apache License 2.0
348 stars 24 forks source link

Remove ``strip_annotated`` function #285

Closed Eclips4 closed 1 month ago

Eclips4 commented 1 month ago

The goal of strip_annotated was conversion from Annotated[1, metadata] to 1. The specification of Python typehints says that Annotated should be parameterized with a type, Annotated[1, metadata] is not a valid typehint. Additionally, strip_annotated can lead to infinite recursion under certain circumstances, making it broken by design.

github-actions[bot] commented 1 month ago

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/adaptix/_internal/morphing
  generic_provider.py
Project Total  

This report was generated by python-coverage-comment-action