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
I would expect being able to hit tab in order to access an attribute via autocomplete (as usual with classes). However, all the keys from some_dict are not present. Also attribute_dict.__dict__ only returns the following: {'__parent': None, '__key': None, '__frozen': False}.
Is that intended, or am I missing something on my side?
As a side note, I installed addict version 2.4.0 via pip.
The text was updated successfully, but these errors were encountered:
@zyLiu6707 In the meantime I developed my own solution since I was not sattisfied with addict and other comparable projects.
It's called MetaDict and behaves exactly like a dict with the addition of enabling (nested) attribute-style key access/assignment and IDE autocompletion.
Hi,
When I convert a normal dictionary like
to an attribute dictionary via
I would expect being able to hit tab in order to access an attribute via autocomplete (as usual with classes). However, all the keys from
some_dict
are not present. Alsoattribute_dict.__dict__
only returns the following:{'__parent': None, '__key': None, '__frozen': False}
.Is that intended, or am I missing something on my side?
As a side note, I installed
addict
version 2.4.0 via pip.The text was updated successfully, but these errors were encountered: