File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
tests/unit/providers/configuration Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 6
6
7
7
8
8
class Section11 (pydantic .BaseModel ):
9
- value1 = 1
9
+ value1 : int = 1
10
10
11
11
12
12
class Section12 (pydantic .BaseModel ):
13
- value2 = 2
13
+ value2 : int = 2
14
14
15
15
16
16
class Settings1 (pydantic .BaseSettings ):
17
- section1 = Section11 ()
18
- section2 = Section12 ()
17
+ section1 : Section11 = Section11 ()
18
+ section2 : Section12 = Section12 ()
19
19
20
20
21
21
class Section21 (pydantic .BaseModel ):
22
- value1 = 11
23
- value11 = 11
22
+ value1 : int = 11
23
+ value11 : int = 11
24
24
25
25
26
26
class Section3 (pydantic .BaseModel ):
27
- value3 = 3
27
+ value3 : int = 3
28
28
29
29
30
30
class Settings2 (pydantic .BaseSettings ):
31
- section1 = Section21 ()
32
- section3 = Section3 ()
31
+ section1 : Section21 = Section21 ()
32
+ section3 : Section3 = Section3 ()
33
33
34
34
35
35
@fixture
You can’t perform that action at this time.
0 commit comments