o
    xi                     @  sH   d Z ddlmZ ddlmZ ddlmZ ddlmZ G dd deZ	d	S )
zHDummy local environment implementation. This is the default environment.    )annotations)AnyLaunchError   )AbstractEnvironmentc                   @  sZ   e Zd ZdZdddZeddd	Zdd
dZdddZdddZ	dddZ
dddZdS )LocalEnvironmentzLocal environment class.returnNonec                 C  s   dS )z0Initialize a local environment by doing nothing.N selfr   r   b/home/ubuntu/.local/lib/python3.10/site-packages/wandb/sdk/launch/environment/local_environment.py__init__   s    zLocalEnvironment.__init__configdict[str, dict[str, Any] | str]c                 C  s   |  S )zCreate a local environment from a config.

        Arguments:
            config (dict): The config. This is ignored.

        Returns:
            LocalEnvironment: The local environment.
        r   )clsr   r   r   r   from_config   s   
zLocalEnvironment.from_configc                   
   t d)z:Verify that the local environment is configured correctly.z%Attempted to verify LocalEnvironment.r   r   r   r   r   verify   s   zLocalEnvironment.verifyuristrc                   r   )zVerify that the storage URI is configured correctly.

        Arguments:
            uri (str): The storage URI. This is ignored.
        z5Attempted to verify storage uri for LocalEnvironment.r   )r   r   r   r   r   verify_storage_uri"   s   z#LocalEnvironment.verify_storage_urisourcedestinationc                   r   )zUpload a file from the local filesystem to storage in the environment.

        Arguments:
            source (str): The source file. This is ignored.
            destination (str): The destination file. This is ignored.
        z.Attempted to upload file for LocalEnvironment.r   r   r   r   r   r   r   upload_file*      zLocalEnvironment.upload_filec                   r   )zUpload the contents of a directory from the local filesystem to the environment.

        Arguments:
            source (str): The source directory. This is ignored.
            destination (str): The destination directory. This is ignored.
        z3Attempted to upload directory for LocalEnvironment.r   r   r   r   r   
upload_dir3   r   zLocalEnvironment.upload_dirc                   r   )zUGet the project of the local environment.

        Returns: An empty string.
        z.Attempted to get project for LocalEnvironment.r   r   r   r   r   get_project<   s   zLocalEnvironment.get_projectN)r	   r
   )r   r   r	   r   )r   r   r	   r
   )r   r   r   r   r	   r
   )r	   r   )__name__
__module____qualname____doc__r   classmethodr   r   r   r   r   r   r   r   r   r   r      s    




		r   N)
r#   
__future__r   typingr   wandb.sdk.launch.errorsr   abstractr   r   r   r   r   r   <module>   s    