Comment about `Struct.typecast()` conflict with frozen instances
parent
589b3f4201
commit
7eb0b1d249
|
@ -80,6 +80,8 @@ class Struct(
|
|||
msgspec.msgpack.Encoder().encode(self)
|
||||
)
|
||||
|
||||
# NOTE XXX: this won't work on frozen types!
|
||||
# use ``.copy()`` above in such cases.
|
||||
def typecast(
|
||||
self,
|
||||
# fields: Optional[list[str]] = None,
|
||||
|
|
Loading…
Reference in New Issue