66import pyarrow as pa
77import pyarrow .compute as pc
88import pytest
9- from vortex .arrow .expression import _schema_for_substrait , arrow_to_vortex
9+ from vortex .arrow .expression import _schema_for_substrait , arrow_to_vortex # pyright: ignore[reportPrivateUsage]
1010
1111
1212class TestSchemaForSubstrait :
@@ -15,12 +15,12 @@ class TestSchemaForSubstrait:
1515 def test_string_view_mapped_to_string (self ):
1616 schema = pa .schema ([("col" , pa .string_view ())])
1717 result = _schema_for_substrait (schema )
18- assert result .field ("col" ).type == pa .string ()
18+ assert result .field ("col" ).type == pa .string () # pyright: ignore[reportUnknownMemberType]
1919
2020 def test_binary_view_mapped_to_binary (self ):
2121 schema = pa .schema ([("col" , pa .binary_view ())])
2222 result = _schema_for_substrait (schema )
23- assert result .field ("col" ).type == pa .binary ()
23+ assert result .field ("col" ).type == pa .binary () # pyright: ignore[reportUnknownMemberType]
2424
2525 def test_other_types_unchanged (self ):
2626 schema = pa .schema (
@@ -95,8 +95,8 @@ def test_mixed_view_and_regular_types(self):
9595 (pa .binary_view (), b"test" ),
9696 ],
9797 )
98- def test_view_types_parametrized (self , view_type , value ):
99- schema = pa .schema ([("col" , view_type )])
100- expr = pc .field ("col" ) == value
101- vortex_expr = arrow_to_vortex (expr , schema )
98+ def test_view_types_parametrized (self , view_type , value ): # pyright: ignore[reportMissingParameterType, reportUnknownParameterType]
99+ schema = pa .schema ([("col" , view_type )]) # pyright: ignore[reportUnknownArgumentType]
100+ expr = pc .field ("col" ) == value # pyright: ignore[reportUnknownVariableType]
101+ vortex_expr = arrow_to_vortex (expr , schema ) # pyright: ignore[reportUnknownArgumentType]
102102 assert vortex_expr is not None
0 commit comments