-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Setting unsafeHash with attrs raises exception #601
Comments
yeah the xsdata-attrs should map the dataclasses |
closed in tefra/xsdata-attrs#8 Thanks for reporting, look out for the next release of the plugin |
@tefra thanks! I'm curious - what do you do for a job? Why do you maintain xsdata? |
Thank you @pashashocky , At my current workplace I am working exclusively with java but I started xsdata in order to keep up to date with python to be honest and it turned out great! It's the kind of project I wish it was available 8 years ago, but without the typing module and projects like the attrs and dataclasses it wasn't really possible. |
@tefra - sounds awesome! One of the cleanest codebases I've seen in git in a while - massive hats off, learning things from you here as well. Will try to contribute if I find some features I'm missing :) |
@tefra - one of the things I would find very useful as part of xsdata is nested attrs-serde, so the ability to be able to map one data model into another in a more simple way. Right now it's difficult to translate a complicated xml schema into something more simple while having the ability to filter/aggregate nested fields. |
When setting:
<Format ... unsafeHash="true">attrs</Format>
as part of .xsdata.xml, binding get generated, but on runtime we get a
TypeError
:attrs() got an unexpected keyword argument 'unsafe_hash'
since attrs works a little differently to how dataclasses does this.
Reporting this for now, happy to hear your thoughts, I don't feel like freezing my data model right now, but would like to stick with using attrs.
The text was updated successfully, but these errors were encountered: