I'm getting the following error importing this library in an AWS Lambda on Python 3.8:
AttributeError: module 'typing' has no attribute '_ClassVar'
The import that raises the error is:
from dataclasses_serialization.json import JSONSerializer
I haven't had a chance to dig into exactly what circumstances lead to the error. I haven't even managed to reproduce it locally. However, I am almost certain that the problem is caused by the backport of dataclasses being pulled in as a dependency regardless of the Python version.
A cursory test shows that redundant copies of dataclasses does not, on its own, cause issues. The information provided is insufficient for me to do anything - have you managed to reproduce the error yet?
I'm getting the following error importing this library in an AWS Lambda on Python 3.8:
The import that raises the error is:
I haven't had a chance to dig into exactly what circumstances lead to the error. I haven't even managed to reproduce it locally. However, I am almost certain that the problem is caused by the backport of dataclasses being pulled in as a dependency regardless of the Python version.