From 0fad111516a73b1c223e951b2f595a4358e958da Mon Sep 17 00:00:00 2001 From: David Zhao Date: Tue, 21 Apr 2026 11:58:10 -0400 Subject: [PATCH] refactor: Correct return type annotation for schema_to_pyarrow --- pyiceberg/io/pyarrow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyiceberg/io/pyarrow.py b/pyiceberg/io/pyarrow.py index 8f22261f5d..17948ad795 100644 --- a/pyiceberg/io/pyarrow.py +++ b/pyiceberg/io/pyarrow.py @@ -690,7 +690,7 @@ def schema_to_pyarrow( metadata: dict[bytes, bytes] = EMPTY_DICT, include_field_ids: bool = True, file_format: FileFormat = FileFormat.PARQUET, -) -> pa.schema: +) -> pa.Schema: return visit(schema, _ConvertToArrowSchema(metadata, include_field_ids, file_format)) @@ -704,7 +704,7 @@ def __init__( self._include_field_ids = include_field_ids self._file_format = file_format - def schema(self, _: Schema, struct_result: pa.StructType) -> pa.schema: + def schema(self, _: Schema, struct_result: pa.StructType) -> pa.Schema: return pa.schema(list(struct_result), metadata=self._metadata) def struct(self, _: StructType, field_results: builtins.list[pa.DataType]) -> pa.DataType: