Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/attr/__pycache__/_compat.cpython-311.pyc



]jHddlZddlZddlZddlZddlZddlZddlmZmZddl	m
Z
ejdkZej
dddkZej
dddkZej
dddkZd	ZGd
dZdZeZejZd
ZdS)N)MappingSequence)
_GenericAliasPyPy)	)r
)rc>tjdtddS)NzRunning interpreter doesn't sufficiently support code object introspection.  Some features like bare super() or accessing __class__ will not work with slotted classes.r)
stacklevel)warningswarnRuntimeWarning)argskws  l/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/attr/_compat.py	just_warnrs2M	8	c*eZdZdZdgZdZdZdZdS)_AnnotationExtractorz^
    Extract type annotations from a callable, returning None whenever there
    is none.
    sigcx	tj||_dS#ttf$rd|_YdSwxYwN)inspect	signaturer
ValueError	TypeError)selfcallables  r__init__z_AnnotationExtractor.__init__'sJ	(22DHHHI&			DHHHH	s99c|jsdSt|jj}|r+|djt
jjur
|djSdS)zU
        Return the type annotation of the first argument if it's not empty.
        Nr)rlist
parametersvalues
annotationr	Parameterempty)rparamss  rget_first_param_typez)_AnnotationExtractor.get_first_param_type-sbx	4dh)002233	(fQi*'2C2III!9''trcf|jr)|jjtjjur|jjSdS)z;
        Return the return type if it's not empty.
        N)rreturn_annotationr	Signaturer()rs rget_return_typez$_AnnotationExtractor.get_return_type:s4

H	.*'2C2III8--trN)__name__
__module____qualname____doc__	__slots__r!r*r.rrrrsT
I




rrcdtrd}|S	tjdkrd}nd}|j}|jdks|jdkrt|jg}||j	|
|j|j|j
|j|j|j|j|j|j|j|j|j|jg
t-j|fd}d}|jd	}||d
|jd
krt	|S#t4$r
t6cYSwxYw)z|Return a function of two arguments (cell, value) which sets
    the value stored in the closure cell `cell` to `value`.
    c2||fdSr)__setstate__cellvalues  rset_closure_cellz/make_set_closure_cell.<locals>.set_closure_cellOsuh'''''r)rc||_dSr)
cell_contentsr8s  rr;z/make_set_closure_cell.<locals>.set_closure_cellYs%*"""rc|dSrr4)r:force_x_to_be_a_cellxs  @rset_first_cellvar_toz3make_set_closure_cell.<locals>.set_first_cellvar_to^s
rrAr4cPtjidd|f}||dS)Nsetterr4)typesFunctionType)r9r:rEset_first_freevar_codes   rr;z/make_set_closure_cell.<locals>.set_closure_cells7+*B"tgu




rcdfd}|S)NcSrr4rCsrfuncz@make_set_closure_cell.<locals>.make_func_with_cell.<locals>.funcsrr4)rKrAs @rmake_func_with_cellz2make_set_closure_cell.<locals>.make_func_with_cells(A




Krrd)PYPYsysversion_info__code__co_cellvarsco_freevarsAssertionErrorco_argcountappendco_kwonlyargcountextend
co_nlocalsco_stacksizeco_flagsco_code	co_constsco_namesco_varnamesco_filenameco_nameco_firstlineno	co_lnotabrFCodeType__closure__r>	Exceptionr)r;rBcorrLr9rHs      @rmake_set_closure_cellrhGs 	(	(	( K v%%
+
+
+
+



&.B~''2>R+?+?$$N#DKK,---KKMOKJLKNNJ%LNN


$&+^T%:"




			#"$$03s###$$  % sD	DD/.D/c0|jtur|jSdS)zDIf this is a generic class (A[str]), return the generic base for it.N)	__class__r
__origin__)cls rget_generic_baserms	|}$$}4r)rplatformrO	threadingrFrcollections.abcrrtypingrpython_implementationrNrPPY_3_9_PLUSPY310PY_3_12_PLUSrrrhr;localrepr_contextrmr4rr<module>rxsI



--------      &x%''61rr"f,!'#w.%%%%%%%%PZ Z Z z)(**y  r
Back to Directory File Manager