Fatal1ty / mashumaro

Fast and well tested serialization library
Apache License 2.0
751 stars 44 forks source link

Python 3.12.4 Compatibility #226

Closed jretz closed 2 months ago

jretz commented 2 months ago

Python 3.12.4 changed the signature of typing.ForwardRef._evaluate so that the exception TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard' is now thrown inside this function:

https://github.com/Fatal1ty/mashumaro/blob/bffc024fc175d3146b521036a79d02348f846cd2/mashumaro/core/meta/helpers.py#L771-L779

The relevant change in Python 3.12.4 is in https://github.com/python/cpython/commit/5430f614371530aab1178b3b610add4bf54c383e.