@@ -60,7 +60,7 @@ def _get_snapshot(self, snapshot_id: int | None = None) -> Snapshot:
6060 else :
6161 raise ValueError ("Cannot get a snapshot as the table does not have any." )
6262
63- def snapshots (self ) -> " pa.Table" :
63+ def snapshots (self ) -> pa .Table :
6464 import pyarrow as pa
6565
6666 snapshots_schema = pa .schema (
@@ -98,7 +98,7 @@ def snapshots(self) -> "pa.Table":
9898 schema = snapshots_schema ,
9999 )
100100
101- def entries (self , snapshot_id : int | None = None ) -> " pa.Table" :
101+ def entries (self , snapshot_id : int | None = None ) -> pa .Table :
102102 import pyarrow as pa
103103
104104 from pyiceberg .io .pyarrow import schema_to_pyarrow
@@ -229,7 +229,7 @@ def _readable_metrics_struct(bound_type: PrimitiveType) -> pa.StructType:
229229 schema = entries_schema ,
230230 )
231231
232- def refs (self ) -> " pa.Table" :
232+ def refs (self ) -> pa .Table :
233233 import pyarrow as pa
234234
235235 ref_schema = pa .schema (
@@ -264,7 +264,7 @@ def partitions(
264264 snapshot_id : int | None = None ,
265265 row_filter : str | BooleanExpression = ALWAYS_TRUE ,
266266 case_sensitive : bool = True ,
267- ) -> " pa.Table" :
267+ ) -> pa .Table :
268268 import pyarrow as pa
269269
270270 from pyiceberg .io .pyarrow import schema_to_pyarrow
@@ -368,7 +368,7 @@ def _update_partitions_map_from_manifest_entry(
368368 else :
369369 raise ValueError (f"Unknown DataFileContent ({ file .content } )" )
370370
371- def _get_manifests_schema (self ) -> " pa.Schema" :
371+ def _get_manifests_schema (self ) -> pa .Schema :
372372 import pyarrow as pa
373373
374374 partition_summary_schema = pa .struct (
@@ -398,14 +398,14 @@ def _get_manifests_schema(self) -> "pa.Schema":
398398 )
399399 return manifest_schema
400400
401- def _get_all_manifests_schema (self ) -> " pa.Schema" :
401+ def _get_all_manifests_schema (self ) -> pa .Schema :
402402 import pyarrow as pa
403403
404404 all_manifests_schema = self ._get_manifests_schema ()
405405 all_manifests_schema = all_manifests_schema .append (pa .field ("reference_snapshot_id" , pa .int64 (), nullable = False ))
406406 return all_manifests_schema
407407
408- def _generate_manifests_table (self , snapshot : Snapshot | None , is_all_manifests_table : bool = False ) -> " pa.Table" :
408+ def _generate_manifests_table (self , snapshot : Snapshot | None , is_all_manifests_table : bool = False ) -> pa .Table :
409409 import pyarrow as pa
410410
411411 def _partition_summaries_to_rows (
@@ -474,10 +474,10 @@ def _partition_summaries_to_rows(
474474 schema = self ._get_all_manifests_schema () if is_all_manifests_table else self ._get_manifests_schema (),
475475 )
476476
477- def manifests (self ) -> " pa.Table" :
477+ def manifests (self ) -> pa .Table :
478478 return self ._generate_manifests_table (self .tbl .current_snapshot ())
479479
480- def metadata_log_entries (self ) -> " pa.Table" :
480+ def metadata_log_entries (self ) -> pa .Table :
481481 import pyarrow as pa
482482
483483 from pyiceberg .table .snapshots import MetadataLogEntry
@@ -513,7 +513,7 @@ def metadata_log_entry_to_row(metadata_entry: MetadataLogEntry) -> Dict[str, Any
513513 schema = table_schema ,
514514 )
515515
516- def history (self ) -> " pa.Table" :
516+ def history (self ) -> pa .Table :
517517 import pyarrow as pa
518518
519519 history_schema = pa .schema (
@@ -546,7 +546,7 @@ def history(self) -> "pa.Table":
546546
547547 def _get_files_from_manifest (
548548 self , manifest_list : ManifestFile , data_file_filter : Set [DataFileContent ] | None = None
549- ) -> " pa.Table" :
549+ ) -> pa .Table :
550550 import pyarrow as pa
551551
552552 files : list [dict [str , Any ]] = []
@@ -610,7 +610,7 @@ def _get_files_from_manifest(
610610 schema = self ._get_files_schema (),
611611 )
612612
613- def _get_files_schema (self ) -> " pa.Schema" :
613+ def _get_files_schema (self ) -> pa .Schema :
614614 import pyarrow as pa
615615
616616 from pyiceberg .io .pyarrow import schema_to_pyarrow
@@ -663,7 +663,7 @@ def _readable_metrics_struct(bound_type: PrimitiveType) -> pa.StructType:
663663 )
664664 return files_schema
665665
666- def _files (self , snapshot_id : int | None = None , data_file_filter : Set [DataFileContent ] | None = None ) -> " pa.Table" :
666+ def _files (self , snapshot_id : int | None = None , data_file_filter : Set [DataFileContent ] | None = None ) -> pa .Table :
667667 import pyarrow as pa
668668
669669 if not snapshot_id and not self .tbl .metadata .current_snapshot ():
@@ -680,29 +680,29 @@ def _files(self, snapshot_id: int | None = None, data_file_filter: Set[DataFileC
680680 )
681681 return pa .concat_tables (results )
682682
683- def files (self , snapshot_id : int | None = None ) -> " pa.Table" :
683+ def files (self , snapshot_id : int | None = None ) -> pa .Table :
684684 return self ._files (snapshot_id )
685685
686- def data_files (self , snapshot_id : int | None = None ) -> " pa.Table" :
686+ def data_files (self , snapshot_id : int | None = None ) -> pa .Table :
687687 return self ._files (snapshot_id , {DataFileContent .DATA })
688688
689- def delete_files (self , snapshot_id : int | None = None ) -> " pa.Table" :
689+ def delete_files (self , snapshot_id : int | None = None ) -> pa .Table :
690690 return self ._files (snapshot_id , {DataFileContent .POSITION_DELETES , DataFileContent .EQUALITY_DELETES })
691691
692- def all_manifests (self ) -> " pa.Table" :
692+ def all_manifests (self ) -> pa .Table :
693693 import pyarrow as pa
694694
695695 snapshots = self .tbl .snapshots ()
696696 if not snapshots :
697697 return pa .Table .from_pylist ([], schema = self ._get_all_manifests_schema ())
698698
699699 executor = ExecutorFactory .get_or_create ()
700- manifests_by_snapshots : Iterator [" pa.Table" ] = executor .map (
700+ manifests_by_snapshots : Iterator [pa .Table ] = executor .map (
701701 lambda args : self ._generate_manifests_table (* args ), [(snapshot , True ) for snapshot in snapshots ]
702702 )
703703 return pa .concat_tables (manifests_by_snapshots )
704704
705- def _all_files (self , data_file_filter : Set [DataFileContent ] | None = None ) -> " pa.Table" :
705+ def _all_files (self , data_file_filter : Set [DataFileContent ] | None = None ) -> pa .Table :
706706 import pyarrow as pa
707707
708708 snapshots = self .tbl .snapshots ()
@@ -720,11 +720,11 @@ def _all_files(self, data_file_filter: Set[DataFileContent] | None = None) -> "p
720720
721721 return pa .concat_tables (file_lists )
722722
723- def all_files (self ) -> " pa.Table" :
723+ def all_files (self ) -> pa .Table :
724724 return self ._all_files ()
725725
726- def all_data_files (self ) -> " pa.Table" :
726+ def all_data_files (self ) -> pa .Table :
727727 return self ._all_files ({DataFileContent .DATA })
728728
729- def all_delete_files (self ) -> " pa.Table" :
729+ def all_delete_files (self ) -> pa .Table :
730730 return self ._all_files ({DataFileContent .POSITION_DELETES , DataFileContent .EQUALITY_DELETES })
0 commit comments