Skip to content

Commit 24cdb88

Browse files
committed
better comments in ParentModel
1 parent 9db7076 commit 24cdb88

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/deploy_tools/models/parent.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33

44
class ParentModel(BaseModel):
5-
"""Will forbid any extra parameters being provided in any subclass."""
5+
"""
6+
Standard Model Config for all models in this project:
7+
forbid: forbid any extra parameters being provided in any subclass.
8+
use_enum_values: use the enum value only when serializing the model,
9+
this means the yaml serializer can work with enums
10+
"""
611

7-
model_config = ConfigDict(extra="forbid", use_enum_values=True)
12+
model_config = ConfigDict(
13+
extra="forbid",
14+
use_enum_values=True,
15+
)

0 commit comments

Comments
 (0)