| 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 |
nothing calls this directly
no test coverage detected