MCPcopy
hub / github.com/pydantic/pydantic / Model

Class Model

tests/test_config.py:130–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129 def test_base_config_custom_init_signature_with_no_var_kw(self):
130 class Model(BaseModel):
131 a: float
132 b: int = 2
133 c: int
134
135 def __init__(self, a: float, b: int):
136 super().__init__(a=a, b=b, c=1)
137
138 model_config = ConfigDict(extra='allow')
139
140 assert _equals(str(signature(Model)), '(a: float, b: int) -> None')
141

Callers

nothing calls this directly

Calls 2

ConfigDictClass · 0.90
PrivateAttrFunction · 0.90

Tested by

no test coverage detected