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
importdataclassesfrometilsimportedc@edc.dataclass(allow_unfrozen=True)@dataclasses.dataclass(eq=True, kw_only=True)classConf:
x: int=3a=Conf()
a.x=2# verify that a is not frozena.frozen() # complains that .frozen() can only be called after .unfrozen()
As the code above shows, allow_unfrozen seems to assume that the dataclass is frozen by default. I think that it should verify the assumption.
The text was updated successfully, but these errors were encountered:
As the code above shows,
allow_unfrozen
seems to assume that the dataclass is frozen by default. I think that it should verify the assumption.The text was updated successfully, but these errors were encountered: