Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.6/site-packages/attr/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.6/site-packages/attr/__pycache__/_compat.cpython-36.pyc

3

"��c;�@s�ddlZddlZddlZddlZddlZddlZddlmZmZej	�dkZ
ejdd�dkZejdd�dkZ
dd	�ZGd
d�d�Zdd
�Ze�Zej�ZdS)�N)�Mapping�Sequence�PyPy���
�cOstjdtdd�dS)Nz�Running interpreter doesn't sufficiently support code object introspection.  Some features like bare super() or accessing __class__ will not work with slotted classes.r)�
stacklevel)�warnings�warn�RuntimeWarning)�args�kw�r�-/tmp/pip-build-_uu8ur7s/attrs/attr/_compat.py�	just_warnsrc@s.eZdZdZdgZdd�Zdd�Zdd�Zd	S)
�_AnnotationExtractorz^
    Extract type annotations from a callable, returning None whenever there
    is none.
    �sigcCs4ytj|�|_Wnttfk
r.d|_YnXdS)N)�inspect�	signaturer�
ValueError�	TypeError)�self�callablerrr�__init__%sz_AnnotationExtractor.__init__cCs>|js
dSt|jjj��}|r:|djtjjk	r:|djSdS)zU
        Return the type annotation of the first argument if it's not empty.
        Nr)r�listZ
parameters�valuesZ
annotationrZ	Parameter�empty)r�paramsrrr�get_first_param_type+s
z)_AnnotationExtractor.get_first_param_typecCs"|jr|jjtjjk	r|jjSdS)z;
        Return the return type if it's not empty.
        N)rZreturn_annotationrZ	Signaturer)rrrr�get_return_type8sz$_AnnotationExtractor.get_return_typeN)�__name__�
__module__�__qualname__�__doc__�	__slots__rrr rrrrrs

rcstrdd�}|Sdd�}y�|j}|jdks4|jfkr8t�tjdkrLdd�}nh|jg}|j|j	�|j
|j|j|j
|j|j|j|j|j|j|j|j|j|jg
�tj|���fd	d�}d
d�}|�jd}||d
�|jd
kr�t�Wntk
�r�tSX|SdS)z|Return a function of two arguments (cell, value) which sets
    the value stored in the closure cell `cell` to `value`.
    cSs|j|f�dS)N)�__setstate__)�cell�valuerrr�set_closure_cellMsz/make_set_closure_cell.<locals>.set_closure_cellcs|�dS)Ncs�S)Nrr)�xrr�force_x_to_be_a_cell\szQmake_set_closure_cell.<locals>.set_first_cellvar_to.<locals>.force_x_to_be_a_cellr)r(r+r)r*r�set_first_cellvar_toUsz3make_set_closure_cell.<locals>.set_first_cellvar_tor*r�cSs
||_dS)N)�
cell_contents)r'r(rrrr)jscs tj�idf|f�}||�dS)N�setter)�types�FunctionType)r'r(r/)�set_first_freevar_coderrr)�scsd��fdd�}|S)Ncs�S)Nrr)r*rr�func�sz@make_set_closure_cell.<locals>.make_func_with_cell.<locals>.funcr)r3r)r*r�make_func_with_cell�sz2make_set_closure_cell.<locals>.make_func_with_cellr�dN)r*)rr-)�PYPY�__code__�co_cellvars�co_freevars�AssertionError�sys�version_info�co_argcount�append�co_kwonlyargcount�extend�
co_nlocals�co_stacksize�co_flags�co_code�	co_consts�co_names�co_varnames�co_filename�co_name�co_firstlineno�	co_lnotabr0�CodeType�__closure__r.�	Exceptionr)r)r,�cor
r4r'r)r2r�make_set_closure_cellEsH






rP)rr)rr)r�platformr;�	threadingr0r
�collections.abcrr�python_implementationr6r<ZPY310ZPY_3_12_PLUSrrrPr)�localZrepr_contextrrrr�<module>s
(]

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists