
    F-Ph                        U d dl mZ d dlmZ d dlZd dlmZ d dlmZ d dl	Z	d dl
Z
ddlmZ ddlmZ dd	lmZ d
dddddZded<   ddZ G d d          ZdS )    )annotations)MappingN)Path)Any   )LEGACY_PATH)legacy_path)HOOK_LEGACY_PATH_ARG)collection_pathpath)	file_pathr   )module_pathr   )
start_pathstartdir)pytest_ignore_collectpytest_collect_filepytest_pycollect_makemodulepytest_report_headerpytest_report_collectionfinishzMapping[str, tuple[str, str]]imply_paths_hooksr   r   fspathr   returnNonec                X    t          |          | k    rt          d|d| d          d S )NzPath(z) != z8
if both path and fspath are given they need to be equal)r   
ValueError)r   r   s     U/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/_pytest/config/compat.py_check_pathr      sU    F||tFF F F4 F F F
 
 	
     c                  *    e Zd ZdZddZddZddZdS )PathAwareHookProxyz
    this helper wraps around hook callers
    until pluggy supports fixingcalls, this one will do

    it currently doesn't return full hook caller proxies for fixed hooks,
    this may have to be changed later depending on bugs
    
hook_relaypluggy.HookRelayr   r   c                    || _         d S N)_hook_relay)selfr!   s     r   __init__zPathAwareHookProxy.__init__+   s    %r   	list[str]c                *    t          | j                  S r$   )dirr%   )r&   s    r   __dir__zPathAwareHookProxy.__dir__.   s    4#$$$r   keystrpluggy.HookCallerc                   t          | j        |          |t          vr| j        |<   S t          |         \  t	          j                  dfd            }j        |_        j        |_        ||_        || j        |<   |S )Nkwr   r   c                 H   |                      d           }|                      d           }|*t          j        t          j                  d           |#|t          ||           n#t          |          }n|J t          |          }|| <   || <    di | S )N)pylib_path_argpathlib_path_argr   )
stacklevel )popwarningswarnr
   formatr   r	   r   )r0   
path_valuefspath_value
fspath_varhookpath_vars      r   
fixed_hookz2PathAwareHookProxy.__getattr__.<locals>.fixed_hook9   s    *,&&4*@*@
3566*d3K3K+M,3+5   $%	    )#/#J===='2:'>'>'333!%l!3!3J)8!-:tzzbzz!r   )r0   r   r   r   )	getattrr%   r   __dict__	functoolswrapsnamespec__name__)r&   r,   r?   r<   r=   r>   s      @@@r   __getattr__zPathAwareHookProxy.__getattr__1   s    ")$*:C"@"@'''!%DM#K#4S#9 Hj_T""" " " " " " " #"". #iJO"iJO"%J!+DM#r   N)r!   r"   r   r   )r   r(   )r,   r-   r   r.   )rF   
__module____qualname____doc__r'   r+   rG   r5   r   r   r    r    "   sZ         & & & &% % % %$ $ $ $ $ $r   r    )r   r   r   r   r   r   )
__future__r   collections.abcr   rB   pathlibr   typingr   r7   pluggycompatr   r	   
deprecatedr
   r   __annotations__r   r    r5   r   r   <module>rS      s   " " " " " " " # # # # # #                                           - - - - - -
 90#:6&@4 4     
 
 
 
3 3 3 3 3 3 3 3 3 3r   