Skip to content

Commit

Permalink
fix rnag#24: del now works
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Feb 9, 2024
1 parent 6b5528d commit 540beef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dotwiz/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ class DotWiz(dict, metaclass=__add_repr__, print_char='✫'):

__init__ = update = __upsert_into_dot_wiz__

__delattr__ = __delitem__ = dict.__delitem__
__setattr__ = __setitem__ = __setitem_impl__

def __getitem__(self, key):
return self.__dict__[key]
def __delattr__(self, key):
super().pop(key)
super().__delattr__(key)

to_dict = __convert_to_dict__
to_dict.__doc__ = 'Recursively convert the :class:`DotWiz` instance ' \
Expand Down

0 comments on commit 540beef

Please sign in to comment.