lovasoa / marshmallow_dataclass

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

8.5.13 broken on py3.9? #240

Closed mfalesni closed 1 year ago

mfalesni commented 1 year ago

Environment: python 3.9

File "/.../lib/python3.9/site-packages/.../base.py", line 8, in <module>
    import marshmallow_dataclass
File "/.../lib/python3.9/site-packages/marshmallow_dataclass/__init__.py", line 129, in <module>
    @dataclass_transform(field_specifiers=(dataclasses.Field, dataclasses.field))
TypeError: dataclass_transform() got an unexpected keyword argument 'field_specifiers'

Dependencies were installed by pip without any error/conflict.

dairiki commented 1 year ago

@mfalesni Can you check on what version of typing_extensions you have installed?

I think our pin is wrong. We have typing_extensions>=4.1.0 but it looks like >=4.2.0 is required to support field_specifiers.

mfalesni commented 1 year ago

It is 4.1.1.

dairiki commented 1 year ago

@mfalesni I've just adjusted the pin and made release 8.5.14. See if that works.

Closing for now. Reopen if needed.