File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -249,11 +249,11 @@ from pydantic import BaseModel
249
249
from pydantic_settings import BaseSettings, SettingsConfigDict
250
250
251
251
252
- class DeepSubModel (BaseModel ):
252
+ class DeepSubModel (BaseModel ): # (1)!
253
253
v4: str
254
254
255
255
256
- class SubModel (BaseModel ):
256
+ class SubModel (BaseModel ): # (2)!
257
257
v1: str
258
258
v2: bytes
259
259
v3: int
@@ -276,6 +276,10 @@ print(Settings().model_dump())
276
276
"""
277
277
```
278
278
279
+ 1 . Sub model has to inherit from ` pydantic.BaseModel ` , Otherwise you may get unexpected results.
280
+
281
+ 2 . Sub model has to inherit from ` pydantic.BaseModel ` , Otherwise you may get unexpected results.
282
+
279
283
` env_nested_delimiter ` can be configured via the ` model_config ` as shown above, or via the
280
284
` _env_nested_delimiter ` keyword argument on instantiation.
281
285
You can’t perform that action at this time.
0 commit comments