Skip to content

Comments

Fix for python3.9 support#1

Open
elad4251 wants to merge 2 commits intopatch-1from
adapt_py_3_9
Open

Fix for python3.9 support#1
elad4251 wants to merge 2 commits intopatch-1from
adapt_py_3_9

Conversation

@elad4251
Copy link
Owner

@elad4251 elad4251 commented Oct 6, 2021

add _SpecialGenericAlias to GenericMeta to support typing.Dict and typing.List

type(typing.Dict) and type(typing.List) return _SpecialGenericAlias in python3.9 (compared to _GenericAlias in python<=3.8)
Need to add it to GenericMeta so that if original_isinstance(cls, GenericMeta): can catch it (dataclasses_serialization/serializer_base/typing.py:64)

@elad4251 elad4251 self-assigned this Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants