We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Fields of record or union tag must accept only hashable values. For example, a Python code generated from the following IDL:
record test ({bigint} a);
currently can take values that aren't hashable e.g.:
>>> v = Test(a=frozenset([1, 2, 3])) >>> hash(v) -3553164928370265785 >>> v2 = Test(a={1, 2, 3}) >>> hash(v2) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/.../test/__init__.py", line 56, in __hash__ return hash((self.a,)) TypeError: unhashable type: 'set'
Expected behavior would be e.g.:
>>> v = Test(a=frozenset([1, 2, 3])) >>> hash(v) -3553164928370265785 >>> v2 = Test(a={1, 2, 3}) Traceback (most recent call last): ... TypeError: a must be hashable
The text was updated successfully, but these errors were encountered:
Fix on nirum-lang/nirum#123
Sorry, something went wrong.
kanghyojun
No branches or pull requests
Fields of record or union tag must accept only hashable values. For example, a Python code generated from the following IDL:
currently can take values that aren't hashable e.g.:
Expected behavior would be e.g.:
The text was updated successfully, but these errors were encountered: