3.13 adds `__replace__` as a dunder on a variety of classes, which is used by the new `copy.replace`. See [here](https://github.com/python/cpython/issues/108751) for more details.