o
    Zh                  	   @   sf   d dl Z d dlmZ d dlmZ d dlmZmZ dedeegef deegef dee fd	d
Z	dS )    N)chainPath)CallableIteratorpathfilterrecursereturnc                #   s`    t | D ]'\ }} fdd|D |dd< t||D ]}t |}||r,|V  qqdS )z
    Implements the interface of ``py.path.local.visit()`` for Path objects,
    to simplify porting the code over from ``py.path.local``.
    c                    s   g | ]}t  |r|qS  r   ).0xdirpathr	   r   B/var/www/html/lang_env/lib/python3.10/site-packages/xdist/_path.py
<listcomp>   s    zvisit_path.<locals>.<listcomp>N)oswalkr   r   )r   r   r	   dirnames	filenamesnamepr   r   r   
visit_path   s   
r   )
r   	itertoolsr   pathlibr   typingr   r   boolr   r   r   r   r   <module>   s    