HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/attr/__pycache__/_compat.cpython-310.pyc
o

;j�	�@s�ddlZddlZddlZddlZddlmZmZddlmZe�	�dkZ
ejdd�dkZejdd�dkZ
ejdd�dkZejdd�d	kZejdkrazdd
lmZWney`eZYnwdd
lmZGdd�d�Ze��Zd
d�ZdS)�N)�Mapping�Sequence)�
_GenericAlias�PyPy�)��)r�	)r�
)r�)�Protocolc@s.eZdZdZdgZdd�Zdd�Zdd�Zd	S)
�_AnnotationExtractorz^
    Extract type annotations from a callable, returning None whenever there
    is none.
    �sigc	Cs2z	t�|�|_WdSttfyd|_YdSw)N)�inspectZ	signaturer�
ValueError�	TypeError)�self�callable�r�@/opt/saltstack/salt/lib/python3.10/site-packages/attr/_compat.py�__init__$s
�z_AnnotationExtractor.__init__cCs>|jsdSt|jj���}|r|djtjjur|djSdS)zU
        Return the type annotation of the first argument if it's not empty.
        Nr)r�list�
parameters�values�
annotationrZ	Parameter�empty)r�paramsrrr�get_first_param_type*s
z)_AnnotationExtractor.get_first_param_typecCs"|jr|jjtjjur|jjSdS)z;
        Return the return type if it's not empty.
        N)rZreturn_annotationrZ	Signaturer)rrrr�get_return_type7s
�z$_AnnotationExtractor.get_return_typeN)�__name__�
__module__�__qualname__�__doc__�	__slots__rrrrrrrr
s
r
cCs|jtur|jSdS)zDIf this is a generic class (A[str]), return the generic base for it.N)�	__class__r�
__origin__)Zclrrr�get_generic_baseSs
r&)r�platform�sys�	threading�collections.abcrr�typingr�python_implementationZPYPY�version_infoZPY_3_8_PLUSZPY_3_9_PLUSZPY310ZPY_3_12_PLUSZtyping_extensionsr�ImportError�objectr
�localZrepr_contextr&rrrr�<module>s*
�4