Wrong dataclass_transform parameter name used for DCTransformDeclarative #9067
Labels
bug
Something isn't working
dataclasses
orm
regression
something worked and was broken by a change
typing
pep -484 typing issues. independent of "mypy"
Milestone
Describe the bug
This is basically the same issue that happened to pydantic here. Previous versions of PEP 681 had
dataclass_transform
take a parameter calledfield_descriptors
but this name was changed tofield_specifiers
. SQLAlchemy still uses the old name forMappedAsDataclass
, here.To Reproduce
Error
Versions
Additional context
The type of the init method should be
(self: Model, a: SQLCoreOperations[int] | int = 1) -> None
, which it is if thedataclass_transform
call onDCTransformDeclarative
uses the correct parameter name.The text was updated successfully, but these errors were encountered: