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 am using a bunch type to enable auto-completion on keys of a dictionary.
I would like to remove anything that is not a key of that dictionary from the results of the auto-completion so that it is not polluted with the methods and attributes of the base dict class.
Is there a means to achieve this?
The text was updated successfully, but these errors were encountered:
At the moment, I am using traitlets.utils.Bunch. Dunno if it would make sense to override __dir__ on traitlets.utils.Bunch. All of this is fairly cosmetic anyway.
I don't think __dir__() is important for anything else, but I'm not 100% sure of that. Possibly in this particular case, a smarter way would be to implement something similar to Bunch that doesn't inherit from dict.
I am using a bunch type to enable auto-completion on keys of a dictionary.
I would like to remove anything that is not a key of that dictionary from the results of the auto-completion so that it is not polluted with the methods and attributes of the base
dict
class.Is there a means to achieve this?
The text was updated successfully, but these errors were encountered: