From a245e32e8286d0df34a6a731bf62fa86504ce6aa Mon Sep 17 00:00:00 2001 From: Anton Petrov Date: Tue, 14 Nov 2023 07:47:29 +0300 Subject: [PATCH] annotate pydantic models for tests --- .../test_pydantic_settings_in_init_py36.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/unit/providers/configuration/test_pydantic_settings_in_init_py36.py b/tests/unit/providers/configuration/test_pydantic_settings_in_init_py36.py index 08234f15..bb7b1865 100644 --- a/tests/unit/providers/configuration/test_pydantic_settings_in_init_py36.py +++ b/tests/unit/providers/configuration/test_pydantic_settings_in_init_py36.py @@ -6,30 +6,30 @@ from pytest import fixture, mark, raises class Section11(pydantic.BaseModel): - value1 = 1 + value1: int = 1 class Section12(pydantic.BaseModel): - value2 = 2 + value2: int = 2 class Settings1(pydantic.BaseSettings): - section1 = Section11() - section2 = Section12() + section1: Section11 = Section11() + section2: Section12 = Section12() class Section21(pydantic.BaseModel): - value1 = 11 - value11 = 11 + value1: int = 11 + value11: int = 11 class Section3(pydantic.BaseModel): - value3 = 3 + value3: int = 3 class Settings2(pydantic.BaseSettings): - section1 = Section21() - section3 = Section3() + section1: Section21 = Section21() + section3: Section3= Section3() @fixture