Closed
Description
Feature
Add __replace__
on dataclasses in 3.13+.
Pitch
Similar to how we're special casing support for __replace__
on namedtuple, we should do the same for dataclasses.
This is causing some false positive issues in TypeShed, where __replace__
isn't getting registered on dataclasses (FunctionProfile
and StatsProfile
) and is needed to properly support the protocol for copy.replace
: python/typeshed#12262