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 would allow the type check to know that the returned dataclass is both a DataclassInstance (supports dataclasses.fields, dataclasses.replace, etc.) as well as remaining T.
The text was updated successfully, but these errors were encountered:
This is a typical use of the PEP 681
dataclass_transform
:What we would like to have, in fact, would be the following return types:
This would allow the type check to know that the returned dataclass is both a
DataclassInstance
(supportsdataclasses.fields
,dataclasses.replace
, etc.) as well as remainingT
.The text was updated successfully, but these errors were encountered: