-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON serialisation fails #453
Comments
Looks like this is a regression introduced in #381 for a type annotated as Might need to contemplate this a little since it's not very clear to me what the correct behavior should be. |
python-attrs/cattrs#453 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
This issue still appears to be present in 23.2.2 |
Any chance of a small reproducer? OP has confirmed their issue is solved on 23.2.2 in a different ticket. |
Here's one.
This gives Changing the dict_field line to gives the correct output on each version. while
fails on all four. This is on Python 3.11.6 but I don't think it depends on that |
Ah interesting, looks like we have another regression in handling dict values. Will check it out today. |
@kmantel can you try https://github.com/python-attrs/cattrs/tree/tin/fix-dict-any and see if it fixes your issue? |
python-attrs/cattrs#453 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
@Tinche, the above link does not work but using the top of 32.2 branch ( |
python-attrs/cattrs#453 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Yeah, in the next day or two as I chase down a different issue. |
Linux 5.15.133.1-microsoft-standard-WSL2
5.15.0-88-generic
Description
Please refer this.
python-lsp/python-lsp-ruff#61
I'm guess it may be that serialisation fails when dataclass is included in
cattrs==23.2.1
What I Did
The text was updated successfully, but these errors were encountered: