o
    %if                  	   @   sn   d dl mZ d dlZd dlmZ d dlmZ d dl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 )    )chainN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   D/var/www/html/corbot_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   )
	itertoolsr   r   pathlibr   typingr   r   boolr   r   r   r   r   <module>   s    