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

Fix use of typing.NewType in Python 3.10 #180

Closed noirbee closed 2 years ago

noirbee commented 2 years ago

https://docs.python.org/3.10/library/typing.html#typing.NewType

"Changed in version 3.10: NewType is now a class rather than a function."

Also add Python 3.10 to the list of tested versions in GitHub workflow.

noirbee commented 2 years ago

Sorry about the relative mess, I can't get it to work for Python3.6 without downgrading types-dataclasses, and since it's EOL anyways…

lovasoa commented 2 years ago

Thanks