
    hv                        % S r SSKJr  SSKrSSKJrJrJrJr  SSK	J
r
Jr  \" S5      r\/ \4   rSS jrSSK	JrJr  S	\S
'   \(       d%  \" S \" \" S\" \/5      0 5      \5       5       5      rSS jrSS jrSS jrg)zV
Workaround for U{the lack of TypeForm
<https://github.com/python/mypy/issues/9773>}.
    )annotationsN)TYPE_CHECKINGCallableProtocolTypeVar)	signature	SignatureTc                    U R                   $ N)__name__)xs    \/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/automat/_runtimeproto.pyruntime_namer      s    ::    )
getmembers
isfunctionfrozenset[str]emptyProtocolMethodsc              #  *   #    U  H	  u  pUv   M     g 7fr    .0nameeachs      r   	<genexpr>r      s      %XJD 	X   Examplec                P    [        S [        U [        5       5       5      [        -
  $ )z
Attempt to ignore implementation details, and get all the methods that the
protocol actually defines.

that includes locally defined methods and also those defined in inherited
superclasses.
c              3  *   #    U  H	  u  pUv   M     g 7fr   r   r   s      r   r   1actuallyDefinedProtocolMethods.<locals>.<genexpr>*   s     J)I:4$)Ir   )	frozensetr   r   r   )protocols    r   actuallyDefinedProtocolMethodsr$   !   s&     	JHj)IJJ
	r   c                    [        X5      n[        U[        5      (       a   [        X[	        X0R
                  5      5        g g r   )getattr
isinstancestrsetattreval__globals__)methoditann
annotations       r   _fixAnnotationr0   /   s3    !J*c""j*<*<=> #r   c                    [        U 5      nUR                  R                  5        H  n[        XS5        M     [        XS5        U$ )z-
Get a signature with evaluated annotations.
_annotation_return_annotation)r   
parametersvaluesr0   )r,   resultparams      r   _liveSignaturer8   5   sA    
 vF""))+vm4 ,6#78Mr   )r   zProtocolAtRuntime[T]returnr(   )r#   objectr9   r   )r,   Callable[..., object]r-   r:   r.   r(   r9   None)r,   r;   r9   r	   )__doc__
__future__r   systypingr   r   r   r   inspectr   r	   r
   ProtocolAtRuntimer   r   r   __annotations__r"   typetupler   r$   r0   r8   r   r   r   <module>rF      s   
 # 
 = = (CLRUO  +$ $$ %$T)UH:5F%KZX% ?	r   