o
    ˳i4                     @  sX   d dl mZ d dlZd dlmZ eeZer#d dlm	Z	 d dl
mZ G dd dZdS )    )annotationsN)TYPE_CHECKING)TableExpireSnapshotsc                   @  s*   e Zd ZU ded< dddZddd	Zd
S )MaintenanceTabler   tblreturnNonec                 C  s
   || _ d S )N)r   )selfr    r   O/home/ubuntu/.local/lib/python3.10/site-packages/pyiceberg/table/maintenance.py__init__!   s   
zMaintenanceTable.__init__r   c                 C  s,   ddl m} ddlm} ||| jdddS )zReturn an ExpireSnapshots builder for snapshot expiration operations.

        Returns:
            ExpireSnapshots builder for configuring and executing snapshot expiration.
        r   )Transactionr   T)
autocommit)transaction)pyiceberg.tabler   pyiceberg.table.update.snapshotr   r   )r   r   r   r   r   r   expire_snapshots$   s   z!MaintenanceTable.expire_snapshotsN)r   r   r	   r
   )r	   r   )__name__
__module____qualname____annotations__r   r   r   r   r   r   r      s   
 
r   )
__future__r   loggingtypingr   	getLoggerr   loggerr   r   r   r   r   r   r   r   r   <module>   s   
