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

Class IndependentModel

tests/unit/test_struct_meta.py:207–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206 # Test independent class, not inheriting kw_only_default
207 class IndependentModel(metaclass=CustomMeta):
208 x: int
209 y: str
210
211 # Should allow positional arguments
212 independent = IndependentModel(1, "test")

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…