-
Notifications
You must be signed in to change notification settings - Fork 16
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
Remove frozenset()
call from dataclass augmentation code
#567
Conversation
@@ -371,7 +371,7 @@ def {cls.__name__}_hash(self): | |||
except AttributeError: | |||
pass | |||
|
|||
h = hash(frozenset({attr_tuple_hash})) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matthiasdiener It looks like this was there from the beginning, but I can't figure out why. Any thoughts?
It blew up with the release of numpy 2.2, failling like this: https://github.com/inducer/pytools/actions/runs/12245644757/job/34159956196.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, this is very strange. This part of the code in #521 was inspired by inducer/pymbolic#125, which does not have a frozenset()
call. Not sure at the moment why I added it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect calling frozenset() here is wrong in any case, since not everything might be hashable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, it should not be here.
87a2ca8
to
cef8b50
Compare
cef8b50
to
42c5be3
Compare
No description provided.