o
    -wi                     @   sD   d Z ddlmZmZ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.    )AnyDictUnionLaunchError   )AbstractEnvironmentc                   @   s   e Zd ZdZdddZedeeeeee	f ef f dd fddZ
dd	d
ZdeddfddZdededdfddZdededdfddZdefddZdS )LocalEnvironmentzLocal environment class.returnNc                 C   s   dS )z0Initialize a local environment by doing nothing.N selfr   r   k/home/ubuntu/sommelier/.venv/lib/python3.10/site-packages/wandb/sdk/launch/environment/local_environment.py__init__   s    zLocalEnvironment.__init__configc                 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uric                    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_project)r
   N)__name__
__module____qualname____doc__r   classmethodr   strr   r   r   r   r   r   r   r   r   r   r   r   r	   
   s    

		r	   N)
r!   typingr   r   r   wandb.sdk.launch.errorsr   abstractr   r	   r   r   r   r   <module>   s
    