Don't show the _DotDict__default attribute in str.

This commit is contained in:
Ethan Dalool 2020-03-10 21:04:14 -07:00
parent 895ae3265d
commit 8245e31036

View file

@ -24,4 +24,6 @@ class DotDict:
self.__dict__[key] = value
def __repr__(self):
return f'DotDict {self.__dict__}'
display = self.__dict__.copy()
display.pop('_DotDict__default')
return f'DotDict {display}'