@@ -229,6 +229,15 @@ def __eq__(self, other: Any) -> bool:
229
229
)
230
230
231
231
232
+ @lru_cache
233
+ def _manifests (io : FileIO , manifest_list : Optional [str ]) -> List [ManifestFile ]:
234
+ """Return the manifests from the manifest list."""
235
+ if manifest_list not in (None , "" ):
236
+ file = io .new_input (manifest_list ) # type: ignore
237
+ return list (read_manifest_list (file ))
238
+ return []
239
+
240
+
232
241
class Snapshot (IcebergBaseModel ):
233
242
snapshot_id : int = Field (alias = "snapshot-id" )
234
243
parent_snapshot_id : Optional [int ] = Field (alias = "parent-snapshot-id" , default = None )
@@ -248,18 +257,9 @@ def __str__(self) -> str:
248
257
result_str = f"{ operation } id={ self .snapshot_id } { parent_id } { schema_id } "
249
258
return result_str
250
259
251
- @staticmethod
252
- @lru_cache
253
- def _manifests (io : FileIO , manifest_list : Optional [str ]) -> List [ManifestFile ]:
254
- """Return the manifests for the given snapshot."""
255
- if manifest_list not in (None , "" ):
256
- file = io .new_input (manifest_list ) # type: ignore
257
- return list (read_manifest_list (file ))
258
- return []
259
-
260
260
def manifests (self , io : FileIO ) -> List [ManifestFile ]:
261
261
"""Return the manifests for the given snapshot."""
262
- return Snapshot . _manifests (io , self .manifest_list )
262
+ return _manifests (io , self .manifest_list )
263
263
264
264
265
265
class MetadataLogEntry (IcebergBaseModel ):
0 commit comments