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 bug was solved in python 3.10, however the issue still remains for 3.9.7.
Is there any workaround that one could use instead of upgrading? Since 3.9.7 is the last version of 3.9 saying we don't support 3.9.7 is more or less the same as saying we don't support 3.9.
I would like to keep the frozen option if at all possible.
I believe
bpo-44806: Fix __init__ in subclasses of protocols
has caused a regression when using a Dataclass.In Python
3.9.7
, adataclass
that inherits from a subclass oftyping.Protocol
(i.e., a user-defined protocol), does not have the correct__init__
.Demonstration
In
3.9.7
:In
3.9.6
:B(value='test')
Affected Projects
The text was updated successfully, but these errors were encountered: