nightsailer · GitHub

which version had this exposed? I'm using 0.19.0 and cannot import it.

uv run python
Python 3.12.10 (main, Apr  9 2025, 03:49:38) [Clang 20.1.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import msgspec
>>> dir(msgspec)
['DecodeError', 'EncodeError', 'Meta', 'MsgspecError', 'NODEFAULT', 'Raw', 'Struct', 'UNSET', 'UnsetType', 'ValidationError', '_Field', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__version__', '_core', '_json_schema', '_utils', '_version', 'convert', 'defstruct', 'field', 'inspect', 'json', 'msgpack', 'structs', 'to_builtins', 'toml', 'yaml']
>>> msgspec.StructMeta
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'msgspec' has no attribute 'StructMeta'

Read the original on github.com ↗