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
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 (FunctionProfileandStatsProfile) and is needed to properly support the protocol forcopy.replace: python/typeshed#12262