Don't show the _DotDict__default attribute in str.
This commit is contained in:
parent
895ae3265d
commit
8245e31036
1 changed files with 3 additions and 1 deletions
|
@ -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}'
|
||||
|
|
Loading…
Reference in a new issue