Replies: 1 comment
-
|
@hemna Hi — thanks for opening the discussion. I’m not entirely sure I’m following yet. The examples and behavior you’re referencing seem to come from a different project. Could you clarify how this relates specifically to dataclass-wizard? A minimal example using dataclass-wizard (or a description of what you’re trying to load/serialize with it) would help determine whether this is in scope here. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been using dataclasses-json to serialize my dataclasses. One issue I've been having with it is the inability to mark a CatchAll field as not hashable, so that when I call hash(mydcobject), the catchall isn't hashed. The reason for this is the the catchall is typically either a dict of dicts or list, which isn't hashable, and I end up with an exception like.
for example
Normally, when I want a field to not be hashable to avoid this problem, I'd declare the field as hash=flase
the tPARM member won't be used in the hash(foo).
How, if at all, can I declare the CatchAll as hash=false ?
Beta Was this translation helpful? Give feedback.
All reactions