File tree 1 file changed +3
-3
lines changed
src/backend/tests/unit/io
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- from typing import List , Literal
1
+ from typing import Literal
2
2
3
3
import pytest
4
4
from pydantic .fields import FieldInfo
@@ -96,7 +96,7 @@ def test_is_list_attribute_processing(self):
96
96
input_instance = StrInput (name = "test_field" , is_list = True )
97
97
schema = create_input_schema ([input_instance ])
98
98
field_info : FieldInfo = schema .model_fields ["test_field" ]
99
- assert field_info .annotation == List [str ]
99
+ assert field_info .annotation == list [str ]
100
100
101
101
# Input with options attribute is processed correctly
102
102
def test_options_attribute_processing (self ):
@@ -184,7 +184,7 @@ def test_is_list_handling(self):
184
184
input_instance = StrInput (name = "test_field" , is_list = True )
185
185
schema = create_input_schema ([input_instance ])
186
186
field_info = schema .model_fields ["test_field" ]
187
- assert field_info .annotation == List [str ]
187
+ assert field_info .annotation == list [str ]
188
188
189
189
# Converting FieldTypes to corresponding Python types
190
190
def test_field_types_conversion (self ):
You can’t perform that action at this time.
0 commit comments