We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90555bd commit cd58c7dCopy full SHA for cd58c7d
pydantic_partials/meta.py
@@ -95,6 +95,10 @@ def __new__(
95
raise ValueError(f'Invalid/Unknown `partial_auto` config value ({final_partial_auto}), use bool value.')
96
97
for k, v in cls.model_fields.items():
98
+ if k in partial_fields:
99
+ # The field is already a Partial
100
+ continue
101
+
102
if v.default is PydanticUndefined and v.default_factory is None:
103
v.annotation = v.annotation | MissingType
104
partial_fields.add(k)
0 commit comments