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
Mypy should special case these functions to only work with dataclasses.
fromdataclassesimportdataclass, replace@dataclassclassD:
passclassC:
passreplace(D())
replace(C()) # TypeError: replace() should be called on dataclass instances