Commit 99bd400
committed
Make PartialModelMetaclass only modify BaseModel subclass
due to ModelMetaclass also being called in other situations where cls is
not BaseModel. We don't want this to interfere in those situations.
See https://github.com/pydantic/pydantic/blob/8128821b864db533b7c5c0c75589777c10d5cda7/pydantic/_internal/_model_construction.py#L85-L881 parent 866459e commit 99bd400
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | | - | |
47 | 49 | | |
0 commit comments