You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
andStatsProfile
) and is needed to properly support the protocol forcopy.replace
: python/typeshed#12262The text was updated successfully, but these errors were encountered: