cpython icon indicating copy to clipboard operation
cpython copied to clipboard

3.13 Better Document `__replace__` on Dataclasses and Named Tuples

Open max-muoto opened this issue 1 year ago • 1 comments

Documentation

With named tuples and dataclasses now implementing __replace__, it would be good to have some clearer documentation on this somewhere. Type-checkers will likely have to implement support as a specific implementation detail, which MyPy is already starting to do (see here, for example), so having more formal documentation of this fact would helpful.

max-muoto avatar Jul 04 '24 17:07 max-muoto