o
    EXîhO  ã                   @   s&   d dl Z d dlZddd„Zdd„ ZdS )é    Nc                    s*   	 ˆ pt  ¡ ‰ ‡ ‡fdd„}dd„ |_|S )Nc                    s0   t  ˆ| ¡}ˆ |ƒ}t| ˆj|ƒ ||i |¤ŽS ©N)ÚtypesÚ
MethodTypeÚsetattrÚ__name__)ÚselfÚargsÚkwargsZbound_methodZcached_method©Úcache_wrapperÚmethod© úG/opt/python-3.10.19/usr/lib/python3.10/importlib/metadata/_functools.pyÚwrapperK   s   zmethod_cache.<locals>.wrapperc                   S   s   d S r   r   r   r   r   r   Ú<lambda>S   s    zmethod_cache.<locals>.<lambda>)Ú	functoolsÚ	lru_cacheÚcache_clear)r   r   r   r   r
   r   Úmethod_cache   s
   B
r   c                    s   	 t  ˆ ¡‡ fdd„ƒ}|S )Nc                    s"   | d urˆ | g|¢R i |¤ŽS d S r   r   )Zparamr   r	   ©Úfuncr   r   r   c   s   ÿzpass_none.<locals>.wrapper)r   Úwraps)r   r   r   r   r   Ú	pass_noneY   s   	r   r   )r   r   r   r   r   r   r   r   Ú<module>   s    
S