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 "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/path/report.py", line 13, in
author = msgspec.convert(element, type=Author)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Can only set min_length on a str, bytes, or collection type - type typing.Annotated[None | str, msgspec.Meta(min_length=10)] is invalid
msgspec version 0.19.0
The text was updated successfully, but these errors were encountered:
Description
Error while creating an object with optional filed with
min_length
meta.Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/path/report.py", line 13, in
author = msgspec.convert(element, type=Author)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Can only set
min_length
on a str, bytes, or collection type - typetyping.Annotated[None | str, msgspec.Meta(min_length=10)]
is invalidmsgspec version
0.19.0
The text was updated successfully, but these errors were encountered: