+
    e6v              #       8   R t ^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHtHtHtHtHt ^ RIHt ^ RIHt ^ R	IHtHt ^ R
IHtHtHtHtHt ^ RIHtHt ^ RI H!t! ^ RI"H#t# ^ RIH$t$ ^ RI%H&t&H't'H(t( ^ RI)H*t*H+t+ ^ RI,H-t-H.t.H/t/H0t0 ^ RI1H2t2H3t3 Rt4Rt5R t6R t7RR lt8]8! RRR7      R 4       t9]8! R4      R 4       t:]8! R4      RR l4       t;]8! R4      R  4       t< ! R! R"]4      t=]8! R#RR$7      R% 4       t> ! R& R']-4      t?]8! R(RRR)7      R* 4       t@]8! R+RRR,7      R- 4       tA ! R. R/]4      tB]8! R(4      R0 4       tC ! R1 R2]4      tD ! R3 R4]4      tE ! R5 R6]4      tF]8! R(RRR)7      R7 4       tG ! R8 R9]-]4      tH]8! R:RR;7      R< 4       tIR= tJ ! R> R?]4      tK ! R@ RA]K4      tL ! RB RC]34      tM ! RD RE]4      tNRF tORG tP]8! RH4      RI 4       tQ]8! RJ4      RK 4       tRRL tS ! RM RN]]!4      tT ! RO RP]24      tU ! RQ RR]+4      tV ! RS RT]4      tW]8! R:4      RU 4       tX ! RV RW]4      tY ! RX RY]]#4      tZ]8! RZRRR)7      R[ 4       t[R\ t\]8! RZRR;7      R] 4       t]R^R_];R`]<Ra]>Rb]@Rc]ARd]9Re]:Rf]CRg]GRh]I/
RiRi]QRj]Q/RkRlRm RnRo /RpRq]J/RrRs]ORt]PRu]X/RvRw]Q/RxRy]R/RzR{][/R|R}]Q/R~RR RR /RR]S/RR]SR]S/RR]SR]S/RR]\! ]P                  P                  4      R]\! ]P                  P                  4      R]\! ]P                  P                  4      R]]//tbR tc ! R R]4      tdR teR# )a  
Implementations of standard library functions, because it's not possible to
understand them with Jedi.

To add a new implementation, create a function and add it to the
``_implemented`` dict at the bottom of this module.

Note that this module exists only to implement very specific functionality in
the standard library. The usual way to understand the standard library is the
compiled module that returns the types for C-builtins.
N)	Parameter)debug)safe_property)get_str_or_none)iterate_argument_clinic
ParamIssuerepack_with_argument_clinicAbstractArgumentsTreeArgumentsWrapper)analysis)compiled)AnonymousMethodExecutionContextMethodExecutionContext)ContextualizedNode	NO_VALUESValueSetValueWrapperLazyValueWrapper)
ClassValueModuleValue)
ClassMixin)FunctionMixin)iterable)LazyTreeValueLazyKnownValueLazyKnownValues)	ValueNameBaseTreeParamName)AttributeOverwritepublish_methodParserTreeFilter
DictFilter)AbstractSignatureSignatureWrappera  _property = property
_tuple = tuple
from operator import itemgetter as _itemgetter
from collections import OrderedDict

class {typename}(tuple):
    __slots__ = ()

    _fields = {field_names!r}

    def __new__(_cls, {arg_list}):
        'Create new instance of {typename}({arg_list})'
        return _tuple.__new__(_cls, ({arg_list}))

    @classmethod
    def _make(cls, iterable, new=tuple.__new__, len=len):
        'Make a new {typename} object from a sequence or iterable'
        result = new(cls, iterable)
        if len(result) != {num_fields:d}:
            raise TypeError('Expected {num_fields:d} arguments, got %d' % len(result))
        return result

    def _replace(_self, **kwds):
        'Return a new {typename} object replacing specified fields with new values'
        result = _self._make(map(kwds.pop, {field_names!r}, _self))
        if kwds:
            raise ValueError('Got unexpected field names: %r' % list(kwds))
        return result

    def __repr__(self):
        'Return a nicely formatted representation string'
        return self.__class__.__name__ + '({repr_fmt})' % self

    def _asdict(self):
        'Return a new OrderedDict which maps field names to their values.'
        return OrderedDict(zip(self._fields, self))

    def __getnewargs__(self):
        'Return self as a plain tuple.  Used by copy and pickle.'
        return tuple(self)

    # These methods were added by Jedi.
    # __new__ doesn't really work with Jedi. So adding this to nametuples seems
    # like the easiest way.
    def __init__(self, {arg_list}):
        'A helper function for namedtuple.'
        self.__iterable = ({arg_list})

    def __iter__(self):
        for i in self.__iterable:
            yield i

    def __getitem__(self, y):
        return self.__iterable[y]

{field_defs}
zW    {name} = _property(_itemgetter({index:d}), doc='Alias for field number {index:d}')
c                    a  V 3R  lpV# )c                   <a a VVV 3R  lp S P                   P                  pS P                  pVe   VP                  4       '       d   RpM2Ve(   VP	                  4       '       d   VP                  4       pMV! 4       # S P                  4       '       g   S P                  4       '       d   V! 4       #  \        V,          V,          pV! S SVR7      #   \         d
     T! 4       # i ; i  \         d
     T! 4       # i ; i)c                     < S! SS R 7      # )	arguments )r(   callbackvalues   5/usr/lib/python3/dist-packages/jedi/plugins/stdlib.pycall&execute.<locals>.wrapper.<locals>.callj   s    EY77    builtins)r(   r*   )namestring_nameparent_contextis_builtins_module	is_module
py__name__is_bound_methodis_instance_implementedKeyErrorAttributeError)r+   r(   r-   obj_namepmodule_namefuncr*   s   ff     r,   wrapperexecute.<locals>.wrapperi   s    	8	Gzz--H $$A}!5!5!7!7(1;;==llnv$$&&%*;*;*=*= vG#K0: EYFF   v	'  	, v/	s#   C( 2C C%$C%(C<;C<r)   )r*   r@   s   f r,   executerB   h   s    > Nr/   c                      \        VP                  4       4      V,          w  r4VP                  4       #   \         d
    \        u # i ; iN)listunpackinfer
IndexErrorr   )inference_stater(   indexkey
lazy_values   &&&  r,   _follow_paramrM      sI    "y//1259 !!  s   "4 AAc                (   a aaaaa V VVVVV3R lpV# )zD
Works like Argument Clinic (PEP 436), to validate function params.
c                 "   <a  VV VVVVV3R  lpV# )c                   <  \        \        V P                  VS4      4      p\
        P                  ! R T ,          RR7       / pS
'       d   TP                  TR&   S'       d   YR&   S'       d   T P                  TR&   S'       d   YR&   S	'       d   Y$R&   S! T/ TB p\
        P                  ! RTRR7       T#   \         d
    \        u # i ; i)	zbuiltin start %sMAGENTA)colorcontextr+   rI   r(   r*   zbuiltin end: %s)tupler   rI   r   r   r   dbgrS   )r+   r(   r*   argskwargsresultclinic_stringr?   want_argumentswant_callbackwant_contextwant_inference_state
want_values   &&&   r,   r@   +argument_clinic.<locals>.f.<locals>.wrapper   s    !4))9mE F
 II(50	BF$-$5$5y!"'w#,1,A,A()&/{#%-z"4*6*FII'yAM#  !  !s    B9 9CCr)   )r?   r@   rY   rZ   r[   r\   r]   r^   s   f r,   fargument_clinic.<locals>.f   s    	 	. r/   r)   )rY   r^   r\   rZ   r]   r[   r`   s   ffffff r,   argument_clinicrb      s     2 Hr/   ziterator[, default], /T)r]   c                 L    WP                  R 4      P                  4       ,          # )__next__py__getattribute__execute_with_values)	iteratorsdefaultsrI   s   &&&r,   builtins_nextrj      s!     22:>RRTTTr/   c                 @    V P                  R 4      P                  4       # )__iter__re   )iterators_or_callablesri   s   &&r,   builtins_iterrn      s     "44Z@TTVVr/   zobject, name[, default], /c                     V  FF  pV F=  p\        V4      pVf   \        P                  ! R4       K*  VP                  V4      u u # 	  KH  	  \        # )Nzgetattr called without str)r   r   warningrf   r   )objectsnamesri   r+   r1   strings   &&&   r,   builtins_getattrrt      sP     D$T*F~:;//77   r/   zobject[, bases, dict], /c                 N    V'       g	   V'       d   \         # V P                  4       # rD   )r   py__class__)rq   basesdictss   &&&r,   builtins_typery      s    ""$$r/   c                   @   a  ] tR t^t o RtR tR tR tRR ltRt	V t
R# )	SuperInstancez-To be used like the object ``super`` returns.c                    Wn         W n        R # rD   )rI   	_instance)selfrI   instances   &&&r,   __init__SuperInstance.__init__   s    .!r/   c                R    V P                   P                  4       P                  4       # rD   )r}   rv   py__bases__r~   s   &r,   
_get_basesSuperInstance._get_bases   s    ~~))+7799r/   c                    V P                  4       ^ ,          P                  4       P                  4       pV'       g   V P                  # \	        \        V4      4      #     )r   rG   rg   r}   nextiter)r~   objss   & r,   _get_wrapped_value SuperInstance._get_wrapped_value   sC     #))+??A >>!DJr/   Nc              #     "   V P                  4        FC  pVP                  4       P                  4        F  pVP                  4        F  pVx  K	  	  K   	  KE  	  R # 5irD   )r   rG   rg   get_filters)r~   origin_scopebr+   r`   s   &&   r,   r   SuperInstance.get_filters   sG     "A668**,AG - 9 #s   AA)r}   rI   rD   )__name__
__module____qualname____firstlineno____doc__r   r   r   r   __static_attributes____classdictcell____classdict__s   @r,   r{   r{      s!     7":  r/   r{   z[type[, value]], /)r\   c                     R p\        V\        4      '       d   VP                  pM"\        V\        4      '       d   VP                  pVf   \        # \        \        VP                  V4      04      # rD   )
isinstancer   r   r   r   r   r{   rI   )typesrq   rS   r   s   &&& r,   builtins_superr      s`    H':;;##	G3	4	4##]8#;#;XFGHHr/   c                   X   a a ] tR t^t oV 3R ltRR lt]! R4      R 4       tRtVt	V ;t
# )ReversedObjectc                2   < \         SV `  V4       W n        R # rD   )superr   
_iter_list)r~   reversed_obj	iter_list	__class__s   &&&r,   r   ReversedObject.__init__   s    &#r/   c                    V P                   # rD   r   )r~   contextualized_nodes   &&r,   
py__iter__ReversedObject.py__iter__  s    r/   rd   c                P    \         P                  ! R  V P                   4       4      # )c              3   @   "   T F  qP                  4       x  K  	  R # 5irD   rG   .0rL   s   & r,   	<genexpr>'ReversedObject._next.<locals>.<genexpr>	  s      "
1@:s   )r   	from_setsr   r~   r(   s   &&r,   _nextReversedObject._next  s&    !! "
15"
 
 	
r/   r   rD   )r   r   r   r   r   r   r   r   r   r   __classcell__r   r   s   @@r,   r   r      s-     $ J
  
 
r/   r   zsequence, /r^   rZ   c           
         \        VP                  4       4      w  r4R p\        V\        4      '       d!   \	        VP
                  VP                  4      p\        V P                  V4      4      pVP                  P                  P                  R4      P                  4       w  p\        \        V\        \        V4      4      4      .4      # )NIterator)r   rF   r   r   r   rS   datarE   iteraterI   typing_modulerf   rg   r   r   reversed)	sequencesr+   r(   rK   rL   cnorderedseqs   &&&     r,   builtins_reversedr     s    
 9++-.OC	B*m,,
 2 2JOOD9$$R()G   ..AA*MaacDC^Chw.?)@ABCCr/   zvalue, type, /)rZ   r]   c                   aa \        4       pV  EF  pVP                  4       p VP                   \	        TP                  4       4      oT EFW  pTP                  4       '       d   TP                  TS9   4       K0  TP                  P                  R8X  d   TP                  4       P                  4       '       dw   \        P                  ! R TP                  4        4       4      pTP                  \        ;QJ d    T3R lT 4       F  '       g   K   R M	  RM! T3R lT 4       4      4       K  \	        TP!                  4       4      ^,          w  r\#        T
\$        4      '       g   EK   T
P&                  pRT,          p\(        P                  ! T
P*                  RY4       EKZ  	  EK  	  \        V3R lV 4       4      #   \         d    \        R R.4      p  K1  i ; i)TFrT   c              3   B   "   T F  pVP                  4       x  K  	  R # 5irD   r   r   s   & r,   r   &builtins_isinstance.<locals>.<genexpr>7  s#      -&:
 $$&&&:s   c              3   ,   <"   T F	  qS9   x  K  	  R # 5irD   r)   )r   clsmros   & r,   r   r   ;  s     $C7CCZ7s   z[TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types, not %s.ztype-error-isinstancec              3   d   <"   T F%  p\         P                  ! S\        V4      4      x  K'  	  R # 5irD   )r   builtin_from_namestr)r   r   rI   s   & r,   r   r   E  s,      A 	""?CF;;s   -0)setrv   r   r;   rE   	py__mro__is_classaddr1   r2   get_root_contextr4   r   r   r   anyrF   r   r   r   r   rS   )rq   r   r(   rI   bool_resultsor   
cls_or_tupclasses_rL   nodemessager   s   &&&f         @r,   builtins_isinstancer   !  s}   5Lmmo	OO 3==?#J""$$  s!23,,7"335HHJJ",, -&0&8&8&:-    $C7$C$C7$C!CD $Y%5%5%7 8 ;j-88%??D(*45G LL!3!35Ld\%   B    ;  	 e}-L	s   GGGc                   &   a  ] tR tRt o R tRtV tR# )StaticMethodObjectiK  c                .    \        V P                  .4      # rD   )r   _wrapped_valuer~   r   class_values   &&&r,   	py__get__StaticMethodObject.py__get__L  s    ,,-..r/   r)   Nr   r   r   r   r   r   r   r   s   @r,   r   r   K  s     / /r/   r   c                 &    \        R  V  4       4      # )c              3   8   "   T F  p\        V4      x  K  	  R # 5irD   )r   )r   r`   s   & r,   r   (builtins_staticmethod.<locals>.<genexpr>R  s     =9a&q))9   r   )	functionss   &r,   builtins_staticmethodr   P  s    =9===r/   c                   8   a a ] tR tRt oV 3R ltR tRtVtV ;t# )ClassMethodObjectiU  c                2   < \         SV `  V4       W n        R # rD   r   r   	_function)r~   class_method_objfunctionr   s   &&&r,   r   ClassMethodObject.__init__V  s    )*!r/   c           
         \        V P                  P                  R 4       Uu. uF  p\        W2V P                  4      NK  	  up4      # u upi )__get__)r   r   rf   ClassMethodGetr   )r~   r   r   r   s   &&& r,   r   ClassMethodObject.py__get__Z  sK    ..AA)L
L 7@L
  	 
s   A	r   )	r   r   r   r   r   r   r   r   r   r   s   @@r,   r   r   U  s     " r/   r   c                   >   a a ] tR tRt oV 3R ltR tR tRtVtV ;t	# )r   ia  c                >   < \         SV `  V4       W n        W0n        R # rD   )r   r   _classr   )r~   
get_methodklassr   r   s   &&&&r,   r   ClassMethodGet.__init__b  s    $!r/   c                    V P                   P                  4        Uu. uF  qP                  V P                   4      NK  	  up# u upi rD   )r   get_signaturesbind)r~   sigs   & r,   r  ClassMethodGet.get_signaturesg  s4    48NN4Q4Q4ST4SS(4STTTs   #Ac                `    V P                   P                  \        V P                  V4      4      # rD   )r   rB   ClassMethodArgumentsr   r   s   &&r,   
py__call__ClassMethodGet.py__call__j  s#    ~~%%&:4;;	&RSSr/   )r   r   )
r   r   r   r   r   r  r	  r   r   r   r   s   @@r,   r   r   a  s     "
UT Tr/   r   c                   <   a a ] tR tRt oV 3R ltRR ltRtVtV ;t# )r  in  c                2   < \         SV `  V4       Wn        R # rD   )r   r   r   )r~   r   r(   r   s   &&&r,   r   ClassMethodArguments.__init__o  s    #r/   c              #     "   R \        V P                  4      3x  V P                  P                  V4       F  pVx  K	  	  R # 5irD   )r   r   _wrapped_argumentsrF   )r~   r?   valuess   && r,   rF   ClassMethodArguments.unpacks  s9     N4;;///--44T:FL ;s   AA)r   rD   )	r   r   r   r   r   rF   r   r   r   r   s   @@r,   r  r  n  s      r/   r  c                 N   a  \        V 3R  lVP                  VR7       4       4      # )c              3   L   <"   T F  pS F  p\        W4      x  K  	  K  	  R # 5irD   )r   )r   class_method_objectr   r   s   &  r,   r   'builtins_classmethod.<locals>.<genexpr>{  s/      #H!H 	-88! 	9#H   !$r'   r   r	  )r   r+   r(   s   f&&r,   builtins_classmethodr  y  s+     #(#3#3i#3#H  r/   c                      a a ] tR tRt oRtV 3R ltR t]! R4      ]! R4      ]! R4      R 4       4       4       tR	t	Vt
V ;t# )
PropertyObjecti  propertyc                2   < \         SV `  V4       W n        R # rD   r   )r~   property_objr   r   s   &&&r,   r   PropertyObject.__init__  s    &!r/   c                X    Vf   \        V .4      # V P                  P                  V4      # rD   )r   r   rg   r   s   &&&r,   r   PropertyObject.py__get__  s*    TF##~~11(;;r/   deletergettersetterc                    \        V 04      # rD   r   r   s   &&r,   _return_selfPropertyObject._return_self  s     r/   r   )r   r   r   r   api_typer   r   r   r%  r   r   r   r   s   @@r,   r  r    sL     H"<
 IHH       r/   r  func, /)r[   c                 8   a  \        V 3R  lV! 4        4       4      # )c              3   L   <"   T F  pS F  p\        W4      x  K  	  K  	  R # 5irD   )r  )r   property_valuer   r   s   &  r,   r   $builtins_property.<locals>.<genexpr>  s-      (N!H 	~00! 	1(r  r   )r   r*   s   f&r,   builtins_propertyr-    s     &j  r/   c                   V P                   pRp\        W1^ 4       F  p\        V4      pVf   K  Tp M	  \        W1^4      pV'       g   \        # \	        V4      ^ ,          p\        V4      p	V	e"   V	P                  RR4      P                  4       p
M~\        V\        P                  4      '       dY   VP                  4        UUu. uF%  pVP                  4        F  p\        V4      NK  	  K'  	  p
ppV
 Uu. uF
  qf   K  VNK  	  p
pM\        # \        P                  V\        V
4      \        V
4      \!        \        V
4      4      P                  RR4      ^R RRP#                  R \%        V
4       4       4      R7      pVP&                  P)                  V4      p\+        VP-                  4       4      p\/        W?\0        P2                  ! VR	R
7      R7      P5                  4       p\7        \9        VVV4      .4      # u uppi u upi )z
Implementation of the namedtuple function.

This has to be done by processing the namedtuple class template and
inferring the result.

jedi_unknown_namedtuple, ' 
c              3   R   "   T F  w  r\         P                  WR 7      x  K  	  R# 5i))rJ   r1   N)_NAMEDTUPLE_FIELD_TEMPLATEformat)r   rJ   r1   s   &  r,   r   )collections_namedtuple.<locals>.<genexpr>  s+      C0A 8>>U>VV0As   %')typenamefield_names
num_fieldsarg_listrepr_fmt
field_defsT)keepends)
code_lines)rI   rM   r   r   rE   replacesplitr   r   Sequencer   rG   _NAMEDTUPLE_CLASS_TEMPLATEr7  rT   lenreprjoin	enumerategrammarparser   iter_classdefsr   parsosplit_lines
as_contextr   r   )r+   r(   r*   rI   r1   cxparam_values_fieldsrs   fieldsrL   vr`   codemodulegenerated_classr3   s   &&&               r,   collections_namedtuplerY    s    ++O %D?q9A=D	 : !Q?L< #GW%FS)//1	GX..	/	/ &002
2
%%' A' 2 	 

 $5V!!V5 &,,&Mv;eFm$,,S"5a;99 C09&0AC C - D $$**40F60023O $$TD9 jl 
 ZQRSS9

 6s   +G<6H Hc                   T   a a ] tR tRt oR	V 3R lltR tR tR tR tR t	Rt
VtV ;t# )
PartialObjecti  c                >   < \         SV `  V4       W n        W0n        R # rD   )r   r   
_argumentsr}   )r~   actual_valuer(   r   r   s   &&&&r,   r   PartialObject.__init__  s    &#!r/   c                    \        VR4      w  r#Vf   Vf$   \        P                  ! RV P                  4       R # VP	                  4       # )Nz(Partial should have a proper function %s)NN)r   r   rp   r]  rG   )r~   unpacked_argumentsrK   rL   s   &&  r,   _get_functionsPartialObject._get_functions  s@    1<@?j0MMDdooV!!r/   c                P   V P                   P                  4       pV P                  V4      pVf   . # ^ pV P                  e   ^p\	        4       pV F%  w  rVVf   V^,          pK  VP                  V4       K'  	  VP                  4        Uu. uF  p\        WsV4      NK  	  up# u upi rD   )r]  rF   rb  r}   r   r   r  PartialSignature)r~   ra  funcs	arg_countkeysrK   r   ss   &       r,   r  PartialObject.get_signatures  s    !__335##$67=I	>>%Iu(FC{Q		 )
 ?D>R>R>TU>T t4>TUUUs   B#c                    V P                  V P                  P                  4       4      pVf   \        # VP	                  \        V P                  WP                  4      4      # rD   )rb  r]  rF   r   rB   MergedPartialArgumentsr}   )r~   r(   rf  s   && r,   r	  PartialObject.py__call__  sM    ##DOO$:$:$<==}}"4??I~~N
 	
r/   c                    V P                  V P                  P                  4       4      pVf   R# V F  pVP                  4       u # 	  R# )z
In CPython partial does not replace the docstring. However we are still
imitating it here, because we want this docstring to be worth something
for the user.
r3  )rb  r]  rF   	py__doc__)r~   	callables	callable_s   &  r,   ro  PartialObject.py__doc__  sF     ''(>(>(@A	"I&&(( #r/   c                    \        V .4      # rD   r   r   s   &&&r,   r   PartialObject.py__get__  s    r/   )r]  r}   rD   )r   r   r   r   r   rb  r  r	  ro  r   r   r   r   r   s   @@r,   r[  r[    s)     "
"V"
   r/   r[  c                   &   a  ] tR tRt o R tRtV tR# )PartialMethodObjecti  c                x    Vf   \        V .4      # \        \        V P                  V P                  V4      .4      # rD   )r   r[  r   r]  r   s   &&&r,   r   PartialMethodObject.py__get__  s6    TF##t':':DOOXVWXXr/   r)   Nr   r   s   @r,   rv  rv    s     Y Yr/   rv  c                   <   a a ] tR tRt oV 3R ltRR ltRtVtV ;t# )re  i  c                >   < \         SV `  V4       W n        W0n        R # rD   )r   r   _skipped_arg_count_skipped_arg_set)r~   wrapped_signatureskipped_arg_countskipped_arg_setr   s   &&&&r,   r   PartialSignature.__init__  s    *+"3 /r/   c                    V P                   P                  4       V P                  R  pV Uu. uF!  q3P                  V P                  9  g   K  VNK#  	  up# u upi rD   )_wrapped_signatureget_param_namesr{  r2   r|  )r~   resolve_starsrr   ns   &&  r,   r   PartialSignature.get_param_names  sM    ''779$:Q:Q:RS O5aMM9N9N$N5OOOs   AA)r{  r|  F	r   r   r   r   r   r  r   r   r   r   s   @@r,   re  re    s     0
P Pr/   re  c                   4   a  ] tR tRt o RR ltRR ltRtV tR# )rl  i"  Nc                *    Wn         W n        W0n        R # rD   )_partial_arguments_call_argumentsr}   )r~   partial_argumentscall_argumentsr   s   &&&&r,   r   MergedPartialArguments.__init__#  s    "3-!r/   c              #    "   V P                   P                  V4      p\        VR 4       V P                  e   R \	        V P                  4      3x  V F  pVx  K	  	  V P
                  P                  V4       F  pVx  K	  	  R # 5irD   )r  rF   r   r}   r   r  )r~   funcdefunpackedkey_lazy_values   &&  r,   rF   MergedPartialArguments.unpack(  sw     **11': 	Xt>>%t~~666&N   '"2299'BN   Cs   BB)r  r}   r  rD   )r   r   r   r   r   rF   r   r   r   s   @r,   rl  rl  "  s     "

! 
!r/   rl  c                 L   a \        V3R  lV P                  S4       4       4      # )c              3   <   <"   T F  p\        VS4      x  K  	  R # 5irD   )r[  r   r   r(   s   & r,   r   $functools_partial.<locals>.<genexpr>6  s"      3H 	h	**3   r  r+   r(   r*   s   &f&r,   functools_partialr  5  (     ((3  r/   c                 L   a \        V3R  lV P                  S4       4       4      # )c              3   <   <"   T F  p\        VS4      x  K  	  R # 5irD   )rv  r  s   & r,   r   *functools_partialmethod.<locals>.<genexpr>=  s"      3H 	Hi003r  r  r  s   &f&r,   functools_partialmethodr  <  r  r/   zfirst, /c                     V # rD   r)   )firstss   &r,   _return_first_paramr  C  s    Mr/   r   c                 <    \         P                  ! R  V  4       4      # )c              3   p   "   T F,  pVP                  4        F  pVP                  4       x  K  	  K.  	  R # 5irD   )r   rG   )r   sequencerL   s   &  r,   r   !_random_choice.<locals>.<genexpr>J  s9      !H"--/J 	/ 	!s   46)r   r   )r   s   &r,   _random_choicer  H  s"     !  r/   c                     \        V P                  V^ 4       F<  pVP                  4       '       d   \        \	        V4      .4      u # \        V .4      u # 	  \
        # r   )rM   rI   r   r   DataclassWrapperr   )r+   r(   r*   rP  s   &&& r,   
_dataclassr  Q  sP    500)Q?::<<-a0122UG$$	 @
 r/   c                   &   a  ] tR tRt o R tRtV tR# )r  iZ  c                   . p\        \        V P                  4       4      4       EF#  p\        V\        4      '       g   K  VP                  4       P                  4       p\        VP                  4       R  R7       F  pVP                  P                  4       pVP                  ^,          pVP                  R8X  g   KC  VP                  R8X  g   KV  \        VP                  4      ^8  d   RpMVP                  ^,          pVP                  \        VP                   VP                  VP                  ^,          VR7      4       K  	  EK&  	  \#        XV4      .# )c                     V P                   # rD   )	start_pos)r1   s   &r,   <lambda>1DataclassWrapper.get_signatures.<locals>.<lambda>c  s    dnnr/   )rK   	expr_stmt	annassignN)r3   	tree_nameannotation_nodedefault_node)r   rE   r   r   r  rO  get_global_filtersortedr  r  get_definitionchildrentyperF  appendDataclassParamNamer3   DataclassSignature)r~   param_namesr   filter_r1   dr  defaults   &       r,   r  DataclassWrapper.get_signatures[  s   D!123C#/00..*<<> #7>>#39TUD557A !

1Ivv,;1Ny112Q6&*G&/&8&8&;G#**+=+.+=+=&*nn,5,>,>q,A)0	,  V 4( #3455r/   r)   N)r   r   r   r   r  r   r   r   s   @r,   r  r  Z  s     6 6r/   r  c                   <   a a ] tR tRt oV 3R ltRR ltRtVtV ;t# )r  it  c                2   < \         SV `  V4       W n        R # rD   )r   r   _param_names)r~   r+   r  r   s   &&&r,   r   DataclassSignature.__init__u  s    'r/   c                    V P                   # rD   r  )r~   r  s   &&r,   r  "DataclassSignature.get_param_namesy  s       r/   r  r  r  r   s   @@r,   r  r  t  s     (! !r/   r  c                   >   a a ] tR tRt oV 3R ltR tR tRtVtV ;t	# )r  i}  c                >   < \         SV `  W4       W0n        W@n        R # rD   )r   r   r  r  )r~   r3   r  r  r  r   s   &&&&&r,   r   DataclassParamName.__init__~  s    3.(r/   c                "    \         P                  # rD   )r   POSITIONAL_OR_KEYWORDr   s   &r,   get_kindDataclassParamName.get_kind  s    ...r/   c                t    V P                   f   \        # V P                  P                  V P                   4      # rD   )r  r   r3   
infer_noder   s   &r,   rG   DataclassParamName.infer  s1    '&&11$2F2FGGr/   )r  r  )
r   r   r   r   r   r  rG   r   r   r   r   s   @@r,   r  r  }  s     )
/H Hr/   r  c                   N   a a ] tR tRt oV 3R lt]! R4      R 4       tRtVtV ;t	# )ItemGetterCallablei  c                2   < \         SV `  V4       W n        R # rD   )r   r   _args_value_set)r~   r   args_value_setr   s   &&&r,   r   ItemGetterCallable.__init__  s    "-r/   zitem, /c                   \         pV P                   F  p\        VP                  4       4      p\	        V4      ^8X  d0   W!P                  V^ ,          P                  4       R4      ,          pK[  T\        \        P                  ! V P                  P                  V Uu. uF,  p\        VP                  VP                  4       R4      4      NK.  	  up4      .4      ,          pK  	  V# u upi )   N)r   r  rE   r   rF  get_itemrG   r   r   FakeListr   rI   r   )r~   item_value_set	value_set
args_valuelazy_valuesrL   s   &&    r,   r	  ItemGetterCallable.py__call__  s    	..Jz4467K;1$44[^5I5I5KTRR	Xx'8'8''77 +6*5J ((?(?
@P@P@RTX(YZ*5( '  	 / s   2C')r  )
r   r   r   r   r   r   r	  r   r   r   r   s   @@r,   r  r    s(     . !+ , r/   r  c                 &    \        R  V  4       4      # )c              3   8   "   T F  p\        V4      x  K  	  R # 5irD   )WrapsCallable)r   r?   s   & r,   r   #_functools_wraps.<locals>.<genexpr>  s     :EDM$''Er   r   )rf  s   &r,   _functools_wrapsr    s    :E:::r/   c                   <   a  ] tR tRt o ]! R4      R 4       tRtV tR# )r  i  r(  c           	     h    \        V Uu0 uF  p\        W P                  4      kK  	  up4      # u upi rD   )r   Wrappedr   )r~   rf  r?   s   && r,   r	  WrapsCallable.py__call__  s*    N':':;NOONs   /r)   N)r   r   r   r   r   r	  r   r   r   s   @r,   r  r    s       !+P ,Pr/   r  c                   H   a a ] tR tRt oV 3R lt]R 4       tR tRtVt	V ;t
# )r  i  c                2   < \         SV `  V4       W n        R # rD   )r   r   _original_function)r~   r?   original_functionr   s   &&&r,   r   Wrapped.__init__  s    "3r/   c                .    V P                   P                  # rD   )r  r1   r   s   &r,   r1   Wrapped.name  s    &&+++r/   c                    V .# rD   r)   r   s   &r,   get_signature_functionsWrapped.get_signature_functions  s	    vr/   )r  )r   r   r   r   r   r  r1   r  r   r   r   r   s   @@r,   r  r    s(     4 , , r/   r  z*args, /c           	      r    \        VP                  V4       Uu. uF  p\        W04      NK  	  up4      # u upi rD   )r   r	  r  )r  r+   r(   r   s   &&& r,   _operator_itemgetterr    s?    ((33H 	843   s   4c                 6   a  \        R RRR7      V 3R l4       pV# )z	string, /Tr   c                 j   <a  VV 3R  lp\        V! 4       4      pV'       d   V# VP                  V4      # )c               3      <"   S F?  p \        V 4      pVf   K  S! V4      p\        P                  ! V P                  V4      x  KA  	  R # 5irD   )r   r   create_simple_objectrI   )r+   ri  r?   stringss     r,   r   ?_create_string_input_function.<locals>.wrapper.<locals>.iterate  sA      #E*=QA"778M8MqQQ	 !s
   A1Ar  )r  r+   r(   r   r  r?   s   f&&  r,   r@   ._create_string_input_function.<locals>.wrapper  s0    	R ')$M	**r/   )rb   r?   r@   s   f r,   _create_string_input_functionr    s&    [T$G
+ H
+ Nr/   c                    \        V 4      ^8X  d   RpV w  pRpVP                  4        F  pVP                  4       p\        V4      ^8w  d	    V! 4       # \        \	        \        V4      4      4      pVf	    V! 4       # V'       g"   V\        P                  P                  ,          pW',          pRpK  	  \        \        P                  ! VP                  V4      .4      # V! 4       # )r  r3  TF)rF  r   rG   r   r   r   ospathsepr   r   r  rI   )args_setr*   rs   r  is_firstrL   string_valuesri  s   &&      r,   _os_path_joinr	    s    
8}	"--/J&,,.M=!Q& :  T-%8 9:Ay : "''++%KFH 0 X::8;S;SU[\]^^:r/   r0   getattrr  r   r   r   r   r   staticmethodclassmethodr  copydeepcopyjsonloadc                     \         # rD   r   r  s   &&&r,   r  r     s    9r/   loadsc                     \         # rD   r  r  s   &&&r,   r  r    s    Ir/   collections
namedtuple	functoolspartialpartialmethodwraps_weakrefproxyrandomchoiceoperator
itemgetterabcabstractmethodtyping_aliasc                     \         # rD   r  r  s   &&&r,   r  r    s    Yr/   runtime_checkablec                     \         # rD   r  r  s   &&&r,   r  r     s    	r/   dataclasses	dataclassattrdefinefrozenattrsos.pathdirnameabspathrelpathrH  c                    a  V 3R  lpV# )c                 n  < V F  pVP                  4       R 8X  g   K  VP                  4       P                  4       R8X  g   K?  \        V P                  4       R7      p\	        VP                  4        Uu/ uF#  pVP                  \        W4      P                  bK%  	  up4      .u # 	  S! WV4      # u upi )EnumMetaenum)r3   )	r6   r   r    rO  r!   r  r2   EnumInstancer1   )r   metaclassesr8   	metaclassr  r1   r?   s   &&&   r,   r@   &get_metaclass_filters.<locals>.wrapper;  s    $I##%3!224??AVK*#..:JK" ' 0$ 0 $$l3&=&B&BB 0$   	 % Ck22	$s   4)B2
r)   r   s   f r,   get_metaclass_filtersr:  :  s    	3 Nr/   c                   F   a  ] tR tRt o R t]R 4       tR tRR ltRt	V t
R# )	r6  iH  c                v    VP                   V n         Wn        W n        V P                  P                  V n        R # rD   )rI   _cls_namer  	tree_node)r~   r   r1   s   &&&r,   r   EnumInstance.__init__I  s+    "22	
--r/   c                @    \        W P                  P                  4      # rD   )r   r>  r  r   s   &r,   r1   EnumInstance.nameO  s    zz3344r/   c                   V P                   P                  pVP                  R 4      '       d   VP                  R 4      '       g   V P                   P                  R8X  d`   V P                   P                  4       pV'       d   \        \        V4      4      # V P                  P                  P                  R4      w  pV# V P                  P                  4       w  pV# )__r   object)r>  r2   
startswithendswithr'  rG   r   r   rI   builtins_modulerf   r=  rg   )r~   r  inferredr   r+   s   &    r,   r   EnumInstance._get_wrapped_valueS  s    JJ""<<!**T"2"2djj6I6IZ6Wzz'')HDN++%%55HHRBAH..0r/   Nc              #    "   \        \        \        P                  ! V P                  V P
                  P                  4      P                  V P
                  R 7      4      x  V P                  4       P                  4        F  pVx  K	  	  R# 5i))r1   r+   N)
r!   dictr   r  rI   r>  r2   r1   r   r   )r~   r   r`   s   && r,   r   EnumInstance.get_filters_  si     ..t/C/CTZZE[E[\aa**
  	 ((*668AG 9s   BB)r=  r>  rI   r?  rD   )r   r   r   r   r   r   r1   r   r   r   r   r   s   @r,   r6  r6  H  s-     . 5 5
 r/   r6  c                    a  V 3R  lpV# )c                    < VP                   R 8X  de   VP                  4       '       dO   VP                  4       R8X  d:   \        \        P
                  ! V \        P                  P                  4      04      # S! WV4      # )r  r.  )	r+   r5   r6   r   r   r  r  r  r  )rI   rS   r  r?   s   &&&r,   r@   $tree_name_to_values.<locals>.wrapperi  sg    ??e#(9(9(;(;@R@R@TXa@a--orww{{K   Oi88r/   r)   r   s   f r,   tree_name_to_valuesrQ  h  s    9 Nr/   )FFFFFrD   )fr   rM  r  inspectr   jedir   jedi.inference.utilsr   jedi.inference.helpersr   jedi.inference.argumentsr   r   r   r	   r
   jedi.inferencer   r   jedi.inference.value.instancer   r   jedi.inference.base_valuer   r   r   r   r   jedi.inference.valuer   r   jedi.inference.value.klassr   jedi.inference.value.functionr   r   jedi.inference.lazy_valuer   r   r   jedi.inference.namesr   r   jedi.inference.filtersr   r   r    r!   jedi.inference.signaturer"   r#   rE  r6  rB   rM   rb   rj   rn   rt   ry   r{   r   r   r   r   r   r   r   r   r  r  r  r-  rY  r[  rv  re  rl  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r	  r  r/  r0  r1  r9   r:  r6  rQ  r)   r/   r,   <module>ra     s  
  	   . 2I I # #<8 8 8 1 7 )  =! ! H9 v 
 F" F )EU FU )*W +W
 -.
 /
 +,% -%$ 0 %D9I :I
' 
 4ED FD$ !$TR& S&R/ /
 >  >	 	
T\ 
T/  4E F '  & $/ 07Tt5 L 5 pY- YP' P!. !&    6|Z 64!* !H* H  0 ; ;PL P
lM 
 TB C  40 1, #%)-+% #' <= , $0!
 $ . * 
 	-
  	> 	I Z ** ** 0A0A0A	GIX# @r/   