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

Function as_tuple

tests/unit/test_struct.py:45–46  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

43
44
45def as_tuple(x):
46 return tuple(getattr(x, f) for f in x.__struct_fields__)
47
48
49@pytest.mark.parametrize("obj, str_obj", [(UNSET, "UNSET"), (NODEFAULT, "NODEFAULT")])

Callers 7

test_init_positionalMethod · 0.85
test_init_kw_onlyMethod · 0.85
test_defstruct_simpleMethod · 0.85
test_defstruct_emptyMethod · 0.85
test_defstruct_fieldsMethod · 0.85
test_defstruct_basesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…