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
Traceback (most recent call last):
File "~/foo.py", line 9, in <module>
foo = msgspec.convert({}, Foo)
^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 4, in __setattr__
dataclasses.FrozenInstanceError: cannot assign to field 'foo_value'
If the value for foo_value is provided in the initial dictionary, there is no error. Also, the error is only raised if slots=True is present.
The text was updated successfully, but these errors were encountered:
Description
The following will fail:
The traceback:
If the value for
foo_value
is provided in the initial dictionary, there is no error. Also, the error is only raised ifslots=True
is present.The text was updated successfully, but these errors were encountered: