Closed tonyandrewmeyer closed 3 months ago
funnily enough, I saw in some of the other PRs that you've in fact been using dcbase.replace, did you change your mind or are you creating more work for yourself? :D
The later :smile:. It felt tidiest at the time to have the PR match the current code rather than something in another PR, but that's probably overthinking things and I should have indeed just gone straight to dataclasses.replace.
This removes the
_DCBase
parent class, which removes the.copy()
and.replace()
methods from the various state classes. Instead, we force people to importcopy
and/ordataclasses
and usecopy.deepcopy()
and/ordataclasses.replace()
.