MCPcopy Index your code
hub / github.com/msgspec/msgspec / Ex

Class Ex

tests/unit/test_convert.py:344–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342 )
343 def test_int_constr_bounds(self, name, bound, good, bad):
344 class Ex(Struct):
345 x: Annotated[int, Meta(**{name: bound})]
346
347 for x in good:
348 assert convert({"x": x}, Ex).x == x

Calls

no outgoing calls