
    -ji                    P    S SK Jr  S SKrS SKrS SKJr  \(       a  S SKJr  SS jrg)    )annotationsN)TYPE_CHECKING)ArtifactStorec                6   [         R                  R                  U5      (       a  [        SU 35      eU R	                  U5       n[        US5       n[        R                  " X45        SSS5        SSS5        g! , (       d  f       N= f! , (       d  f       g= f)zDownload an artifact from the artifact store.

Args:
    artifact_store:
        An artifact store.
    file_path:
        A path to save the downloaded artifact.
    artifact_id:
        The identifier of the artifact to download.
zFile already exists: wbN)ospathexistsFileExistsErroropen_readeropenshutilcopyfileobj)artifact_store	file_pathartifact_idreaderwriters        T/home/james-whalen/.local/lib/python3.13/site-packages/optuna/artifacts/_download.pydownload_artifactr      sn     
ww~~i   5i[ABB		#	#K	0FDD<QU[6* =R	0	0<Q<Q	0	0s$   B
A9(B
9
B	B


B)r   r   r   strr   r   returnNone)	
__future__r   r   r   typingr   optuna.artifacts._protocolr   r        r   <module>r      s    " 	    8+r   