Skip to content

Freeze dictionary keys to make them hashable #228

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

Merged
merged 23 commits into from
Apr 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4f6dfa0
Freeze dictionary keys to make them hashable
nielstron Apr 25, 2023
2187aaf
Also freeze set elements (need to be hashable)
nielstron Apr 25, 2023
20e3151
Fix handling of indefinite lists vs definite lists
nielstron Apr 25, 2023
65767ff
Ignore linter error
nielstron Apr 25, 2023
c1f3294
Add frozenlist to dependencies
nielstron Apr 25, 2023
f154f35
Do not recurse on hashable (and hence frozen) values
nielstron Apr 25, 2023
6ed9699
flatten helper methods
juliusfrost Apr 25, 2023
eb8ab14
don't need to recurse into frozen set since it's hashable
juliusfrost Apr 25, 2023
a9200d4
relax frozendict version for uplc
juliusfrost Apr 25, 2023
49e75d5
need to add more primitive types or typegaurd errors
juliusfrost Apr 25, 2023
6e39ae2
simplify logic (containers are already handled)
juliusfrost Apr 26, 2023
d873e56
add frozen dict to default_encoder
juliusfrost Apr 26, 2023
07c7e3e
Merge pull request #3 from juliusfrost/fix/freeze_dict_keys
nielstron Apr 26, 2023
0211643
only freeze keys
juliusfrost Apr 26, 2023
e3e91e5
add indefinite frozen list to default_encoder
juliusfrost Apr 26, 2023
43758d3
Return indefinite list
nielstron Apr 27, 2023
7316eab
Merge pull request #4 from juliusfrost/fix/freeze_dict_keys
nielstron Apr 27, 2023
b8234d1
Freeze set members
nielstron Apr 27, 2023
d697763
freeze result of to_primitive
juliusfrost Apr 28, 2023
d303105
Merge pull request #5 from juliusfrost/fix/freeze_dict_keys
nielstron Apr 29, 2023
4ff1872
Format
nielstron Apr 29, 2023
2c718bd
use latest frozendict
juliusfrost Apr 29, 2023
ddb6b93
Merge pull request #6 from juliusfrost/fix/freeze_dict_keys
nielstron Apr 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading