-
Notifications
You must be signed in to change notification settings - Fork 6
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
FrozenDict
breaks yaml.load
#46
Comments
The issue is caused by the loader function interpreting the dictitems as mutable I believe: https://github.com/yaml/pyyaml/blob/main/lib/yaml/constructor.py#L623 Could try to patch this by adding a custom While we're at it, @shanest, do you remember why the class tags in the Relevant StackOverflow post on the tag types: |
I ran into this issue awhile ago and did implement custom load/save for the class to solve the issue; see https://github.com/CLMBRs/ultk/blob/main/src/ultk/util/frozendict.py . Are you working in a branch that might be behind |
(It's possible that you might also need to re-save the expressions you're trying to load, not positive about that) |
Thanks for the suggestion to save the expressions! I am now able to load expressions again and see the |
The addition of
FrozenDict
s toMeaning
breaks theyaml.load()
function (TypeError: FrozenDict is immutable
):The text was updated successfully, but these errors were encountered: