Return a deep copy of this object.
(self, memo: t.Any = None)
| 394 | return self.__class__(self) |
| 395 | |
| 396 | def deepcopy(self, memo: t.Any = None) -> te.Self: |
| 397 | """Return a deep copy of this object.""" |
| 398 | return self.__class__(deepcopy(self.to_dict(flat=False), memo)) |
| 399 | |
| 400 | @t.overload |
| 401 | def to_dict(self, flat: t.Literal[True] = ...) -> dict[K, V]: ... |