ReturnDict throws KeyError when part of dataclass and dataclasses.asdict() called #9065
-
ReturnDict's constructor expects the kwarg So when the code in dataclasses.asdict that handles dict elements of a dataclass tries to copy it using the constructor, it fails. This has also bitten us when using further serializers (Avro etc.) that also use the same approach to copy a subclass of Reproduction test case:
Suggestion Given that providing a value of |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I would be open to review a PR with a proper failing testcase and a draft solution which don't break any existing right behavior |
Beta Was this translation helpful? Give feedback.
-
Any update on this? thanks |
Beta Was this translation helpful? Give feedback.
-
This affects ReturnList as well, see: goauthentik/authentik#9430 |
Beta Was this translation helpful? Give feedback.
I would be open to review a PR with a proper failing testcase and a draft solution which don't break any existing right behavior