Code
Hub
Trending
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
Callers
10
test_datetime_constrs
Method · 0.70
test_time_constrs
Method · 0.70
test_from_attributes_option_disables_attribute_coercion
Method · 0.70
test_from_attributes_option_disables_attribute_coercion
Method · 0.70
test_from_attributes_option_disables_attribute_coercion
Method · 0.70
test_object_to_struct_with_renamed_fields
Method · 0.70
test_struct_extra_fields
Method · 0.70
test_struct_extra_fields
Method · 0.70
test_generic_struct
Method · 0.70
test_raw
Method · 0.70
Calls
no outgoing calls
Tested by
10
test_datetime_constrs
Method · 0.56
test_time_constrs
Method · 0.56
test_from_attributes_option_disables_attribute_coercion
Method · 0.56
test_from_attributes_option_disables_attribute_coercion
Method · 0.56
test_from_attributes_option_disables_attribute_coercion
Method · 0.56
test_object_to_struct_with_renamed_fields
Method · 0.56
test_struct_extra_fields
Method · 0.56
test_struct_extra_fields
Method · 0.56
test_generic_struct
Method · 0.56
test_raw
Method · 0.56