Skip to content

Commit fd47056

Browse files
anton-petrovosminogin
authored andcommitted
annotate pydantic models for tests
1 parent cc2304e commit fd47056

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/unit/providers/configuration/test_pydantic_settings_in_init_py36.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@
66

77

88
class Section11(pydantic.BaseModel):
9-
value1 = 1
9+
value1: int = 1
1010

1111

1212
class Section12(pydantic.BaseModel):
13-
value2 = 2
13+
value2: int = 2
1414

1515

1616
class Settings1(pydantic.BaseSettings):
17-
section1 = Section11()
18-
section2 = Section12()
17+
section1: Section11 = Section11()
18+
section2: Section12 = Section12()
1919

2020

2121
class Section21(pydantic.BaseModel):
22-
value1 = 11
23-
value11 = 11
22+
value1: int = 11
23+
value11: int = 11
2424

2525

2626
class Section3(pydantic.BaseModel):
27-
value3 = 3
27+
value3: int = 3
2828

2929

3030
class Settings2(pydantic.BaseSettings):
31-
section1 = Section21()
32-
section3 = Section3()
31+
section1: Section21 = Section21()
32+
section3: Section3= Section3()
3333

3434

3535
@fixture

0 commit comments

Comments
 (0)