MCPcopy
hub / github.com/pydantic/pydantic / PetCls

Class PetCls

tests/test_deprecated.py:130–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129def test_from_attributes():
130 class PetCls:
131 def __init__(self, *, name: str, species: str):
132 self.name = name
133 self.species = species
134
135 class PersonCls:
136 def __init__(self, *, name: str, age: float = None, pets: list[PetCls]):

Callers 1

test_from_attributesFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_from_attributesFunction · 0.68