Migrate from __dataclass_transform__
to typing.dataclass_transform
#4238
multimeric
started this conversation in
Feature Request
Replies: 1 comment 1 reply
-
But which versions of python is it available in? Is it available in typing-extensions? If so, is it recognized by all applicable type checkers? What do well do about mypy where we have the dedicated extension? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As of June 2022, PEP 681 has been accepted. Therefore, it would be good if Pydantic could migrate from
__dataclass_transform__
(which was only ever a temporary measure) totyping.dataclass_transform
, which would satisfy the PEP specification.This would allow type checkers that support PEP 681 but not the intermediate measure to appropriately type check and autocomplete pydantic models.
Beta Was this translation helpful? Give feedback.
All reactions