-
Notifications
You must be signed in to change notification settings - Fork 93
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
AttrDict fails when uniting regular dicts #640
Comments
We desperately want to move away from |
@brynpickering I was looking at alternatives, and I found The only thing its missing is the "disallow overrides" feature we have, although I feel like we are always turning that off... |
Hmm yeah, the others I found also have only one downside each, so it's three options each with one problem making them unsuitable as drop-in replacements 😄 |
I'll try to come up with a nice working alternative later, so let's keep this issue open for now. (subclass of |
What happened?
At the moment,
AttrDict
will fail to executeunion
if the merged object is a regular dictionary. This is despite the docstrings suggesting that this should be possible.The cause is that we directly call
other.keys_nested()
, which isAttrDict
exclusive. The solution is an additional checkistype(other, AttrDict)
, and converting ifFalse
.Which operating systems have you used?
Version
v0.7
Relevant log output
No response
The text was updated successfully, but these errors were encountered: