o
    DD©i{  ã                   @   s\   d dl Z d dlmZ d dlmZ d dlmZ d dlmZ ededeeddf fdd	„ƒZ	dS )
é    N)Úcontextmanager)ÚPath)Ú	Generator)ÚStrPathÚpathÚreturnc              	   c   sD    zt | ƒ ¡ } t ¡ }t | ¡ | V  W t |¡ dS t |¡ w )zT
    Temporarily chdir to the given path, and then return to the previous path.
    N)r   ÚresolveÚosÚgetcwdÚchdir)r   Úcwd© r   úM/var/www/Datamplify/venv/lib/python3.10/site-packages/libcst/helpers/paths.pyr      s   €
r   )
r	   Ú
contextlibr   Úpathlibr   Útypingr   Úlibcst._typesr   r   r   r   r   r   Ú<module>   s   "