Skip to content

Commit

Permalink
Use ConfigModel.__dict__ for deep copying
Browse files Browse the repository at this point in the history
  • Loading branch information
bswck committed Aug 23, 2023
1 parent dd9455e commit 10d1b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configzen/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@ def __deepcopy__(
self: ConfigModelT,
memodict: dict[Any, Any] | None = None,
) -> ConfigModelT:
state = dict(self._iter(to_dict=False))
state = self.__dict__.copy()
state.pop(LOCAL, None)
state.pop(TOKEN, None)
clone = copy.deepcopy(state)
Expand Down

0 comments on commit 10d1b23

Please sign in to comment.