You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, AttrDict will fail to execute union 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 is AttrDict exclusive. The solution is an additional check istype(other, AttrDict), and converting if False.
Which operating systems have you used?
macOS
Windows
Linux
Version
v0.7
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
We desperately want to move away from AttrDict (see #366) rather than constantly patching it. However, we haven't found an alternative that fits our needs.
The only thing its missing is the "disallow overrides" feature we have, although I feel like we are always turning that off...
It has one disadvantage, though: it uses OrderedDict instead of just dict, which is slightly slower.
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 😄
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: