marshmallow-code / marshmallow-sqlalchemy

SQLAlchemy integration with marshmallow
https://marshmallow-sqlalchemy.readthedocs.io
MIT License
557 stars 96 forks source link

use marshmallow 3.18.0 Enum field if available #470

Closed sjhewitt closed 1 month ago

sjhewitt commented 1 year ago

marshmallow 3.18.0 now has native Enum support. This PR updates the SQLA_TYPE_MAPPING to use the new field if it is available

panda-byte commented 1 month ago

This doesn't work (anymore?), because the instantiation of ma.fields.Enum requires a positional enum argument, which isn't supplied. But I tried to solve it in !611.