Don't show the _DotDict__default attribute in str.

master
Ethan Dalool 2020-03-10 21:04:14 -07:00
parent 895ae3265d
commit 8245e31036
1 changed files with 3 additions and 1 deletions

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}'