mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
9 lines
266 B
Python
9 lines
266 B
Python
''' Exports dotdict. '''
|
|
|
|
class dotdict(dict): # pylint: disable=invalid-name
|
|
'''dot.notation access to dictionary attributes'''
|
|
def __getattr__(self, attr):
|
|
return self.get(attr)
|
|
__setattr__ = dict.__setitem__
|
|
__delattr__ = dict.__delitem__
|