Skip to content

Commit dab59fb

Browse files
committed
test: fix tests
1 parent 63fe5ba commit dab59fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/tests/unit/io/test_io_schema.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import List, Literal
1+
from typing import Literal
22

33
import pytest
44
from pydantic.fields import FieldInfo
@@ -96,7 +96,7 @@ def test_is_list_attribute_processing(self):
9696
input_instance = StrInput(name="test_field", is_list=True)
9797
schema = create_input_schema([input_instance])
9898
field_info: FieldInfo = schema.model_fields["test_field"]
99-
assert field_info.annotation == List[str]
99+
assert field_info.annotation == list[str]
100100

101101
# Input with options attribute is processed correctly
102102
def test_options_attribute_processing(self):
@@ -184,7 +184,7 @@ def test_is_list_handling(self):
184184
input_instance = StrInput(name="test_field", is_list=True)
185185
schema = create_input_schema([input_instance])
186186
field_info = schema.model_fields["test_field"]
187-
assert field_info.annotation == List[str]
187+
assert field_info.annotation == list[str]
188188

189189
# Converting FieldTypes to corresponding Python types
190190
def test_field_types_conversion(self):

0 commit comments

Comments
 (0)