Skip to content

Commit c6a6c06

Browse files
authored
Fix pa.Schema type annotations in schema_to_pyarrow (#3261)
1 parent 794ec02 commit c6a6c06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyiceberg/io/pyarrow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ def schema_to_pyarrow(
690690
metadata: dict[bytes, bytes] = EMPTY_DICT,
691691
include_field_ids: bool = True,
692692
file_format: FileFormat = FileFormat.PARQUET,
693-
) -> pa.schema:
693+
) -> pa.Schema:
694694
return visit(schema, _ConvertToArrowSchema(metadata, include_field_ids, file_format))
695695

696696

@@ -704,7 +704,7 @@ def __init__(
704704
self._include_field_ids = include_field_ids
705705
self._file_format = file_format
706706

707-
def schema(self, _: Schema, struct_result: pa.StructType) -> pa.schema:
707+
def schema(self, _: Schema, struct_result: pa.StructType) -> pa.Schema:
708708
return pa.schema(list(struct_result), metadata=self._metadata)
709709

710710
def struct(self, _: StructType, field_results: builtins.list[pa.DataType]) -> pa.DataType:

0 commit comments

Comments
 (0)