| 219 | @pytest.mark.parametrize('extra', ['ignore', 'forbid', 'allow']) |
| 220 | def test_extra_allow_from_orm(extra: Literal['ignore', 'forbid', 'allow']): |
| 221 | class TestCls: |
| 222 | x = 1 |
| 223 | y = 2 |
| 224 | |
| 225 | class Model(BaseModel): |
| 226 | model_config = ConfigDict(from_attributes=True, extra=extra) |
no outgoing calls