lovasoa / marshmallow_dataclass

Automatic generation of marshmallow schemas from dataclasses.
https://lovasoa.github.io/marshmallow_dataclass/html/marshmallow_dataclass.html
MIT License
458 stars 78 forks source link

with_args, kw_only, slots support in >=3.10 #205

Open crutcher opened 2 years ago

crutcher commented 2 years ago

Add (new in 3.10) arguments to @dataclass

Similar to #204 , with sys.version_info guarding.

I tried using a common dispatch handler, but I think custom mypy handling of this class was breaking dispatch, and the forward reference tests were failing. Open to suggestions.

antoine-chopin commented 9 months ago

Hello, I'm looking to use  kw_only with the decorator marshmallow_dataclass, this is a very old PR, do you intend to add support for this? Maybe it's already supported?

kmc6123 commented 9 months ago

Hello, I'm looking to use  kw_only with the decorator marshmallow_dataclass, this is a very old PR, do you intend to add support for this? Maybe it's already supported?

I made a new PR, very similar to this. Hoping to get this revived 🤞 @antoine-chopin