o
    xi                     @  sL   d Z ddlmZ ddlZddlmZ ejddG dd dZdddZdS )zInternal APIs for integrating with weave.

The public functions here are intended to be called by weave and care should
be taken to maintain backward compatibility.
    )annotationsN)wandb_setupT)frozenc                   @  s*   e Zd ZU ded< 	 ded< 	 ded< dS )RunPathstrentityprojectrun_idN)__name__
__module____qualname____annotations__ r   r   U/home/ubuntu/.local/lib/python3.10/site-packages/wandb/integration/weave/interface.pyr      s   
 r   returnRunPath | Nonec                  C  s<   t  } | j }r|jr|jr|jrt|j|j|jdS dS )a	  Returns the path of an initialized, unfinished run.

    Returns None if all initialized runs are finished. If there is
    more than one active run, an arbitrary path is returned.
    The run may be finished by the time its path is returned.

    Thread-safe.
    )r   r   r	   N)r   	singletonmost_recent_active_runr   r   idr   )r   runr   r   r   active_run_path   s   	r   )r   r   )	__doc__
__future__r   dataclasses	wandb.sdkr   	dataclassr   r   r   r   r   r   <module>   s    
