+
    i&3                    ~    ^ RI Ht ^ RIHt ^ RIHt ^ RIHtHt ^ RI	H
t
Ht ^ RIHt ^ RIHtHtHt  ! R R	4      tR
# )    )annotations)nodes)Instance)CallContextInferenceContext)InferenceError	NoDefault)InferenceResult)UninferableUninferableBase
safe_inferc                      ] tR t^tRtRR R llt]RR R ll4       tR R ltR	 R
 lt	RR R llt
RR R lltR R ltRtR# )CallSitea{  Class for understanding arguments passed into a call site.

It needs a call context, which contains the arguments and the
keyword arguments that were passed into a given call site.
In order to infer what an argument represents, call :meth:`infer_argument`
with the corresponding function node and the argument name.

:param callcontext:
    An instance of :class:`astroid.context.CallContext`, that holds
    the arguments for the call site.
:param argument_context_map:
    Additional contexts per node, passed in from :attr:`astroid.context.Context.extra_context`
:param context:
    An instance of :class:`astroid.context.Context`.
Nc                    V ^8  d   QhRRRR/# )   callcontextr   contextInferenceContext | None )formats   "3/usr/lib/python3/dist-packages/astroid/arguments.py__annotate__CallSite.__annotate__    s     
 
 
 )	
    c                	   Vf   / pW n         VP                  pVP                  p\        4       V n        V P                  WCR7      V n        V P                  WSR7      V n        V P                   Uu. uF  p\        V\        4      '       d   K  VNK  	  upV n        V P                  P                  4        UUu/ uF  w  rx\        V\        4      '       d   K  WxbK!  	  uppV n        R # u upi u uppi Nr   )argument_context_mapargskeywordssetduplicated_keywords_unpack_args_unpacked_args_unpack_keywords_unpacked_kwargs
isinstancer   positional_argumentsitemskeyword_arguments)	selfr   r   r   r   r    argkeyvalues	   &&&&     r   __init__CallSite.__init__    s      '#% $8!''-0U "///F $ 5 5h 5 P  ..%
.Cjo6VCC.%
!
 #3399;"
;
e_5 CJ;"
%
"
s   0C(C(8C-C-c                    V ^8  d   QhRRRR/# )r   	call_nodez
nodes.Callr   r   r   )r   s   "r   r   r   9   s     	1 	1* 	17N 	1r   c                |    T;'       g    \        4       p\        VP                  VP                  4      pV ! W2R7      # )zhGet a CallSite object from the given Call node.

context will be used to force a single inference path.
r   )r   r   r   r    )clsr2   r   r   s   &&& r   	from_callCallSite.from_call8   s6     //-/!)..)2D2DE;00r   c                   V ^8  d   QhRR/# r   returnboolr   )r   s   "r   r   r   D   s     J Jt Jr   c                X    \        V P                  4      \        V P                  4      8g  # )aG  Check if in the current CallSite were passed *invalid* arguments.

This can mean multiple things. For instance, if an unpacking
of an invalid object was passed, then this method will return True.
Other cases can be when the arguments can't be inferred by astroid,
for example, by passing objects which aren't known statically.
)lenr(   r$   r+   s   &r   has_invalid_argumentsCallSite.has_invalid_argumentsD   s%     4,,-T5H5H1IIIr   c                   V ^8  d   QhRR/# r8   r   )r   s   "r   r   r   N   s     I Id Ir   c                X    \        V P                  4      \        V P                  4      8g  # )a?  Check if in the current CallSite were passed *invalid* keyword arguments.

For instance, unpacking a dictionary with integer keys is invalid
(**{1:2}), because the keys must be strings, which will make this
method to return True. Other cases where this might return True if
objects which can't be inferred were passed.
)r<   r*   r&   r=   s   &r   has_invalid_keywordsCallSite.has_invalid_keywordsN   s%     4))*c$2G2G.HHHr   c               $    V ^8  d   QhRRRRRR/# )r   r    z%list[tuple[str | None, nodes.NodeNG]]r   r   r9   z!dict[str | None, InferenceResult]r   )r   s   "r   r   r   X   s(     ! !7! )! 
+	!r   c                	   / pT;'       g    \        4       pV P                  Vn        V EF  w  rEVEf   \        WRR7      p\	        V\
        P                  4      '       g   \        W4&   KA  VP                   F  w  rx\        WrR7      p\	        V\
        P                  4      '       g   \        W4&   K;  \	        VP                  \        4      '       g   \        W4&   Ke  VP                  V9   d:   \        W7P                  &   V P                  P                  VP                  4       K  WVP                  &   K  	  EK  WSV&   EK  	  V# r   )r   r   extra_contextr   r'   r   Dictr   r)   Constr.   strr"   add)	r+   r    r   valuesnamer.   inferreddict_key
dict_values	   &&&      r   r%   CallSite._unpack_keywordsX   s    
 57//-/ $ 9 9#KD|%e=!(EJJ77#.FL,4NN(H)(DH%h<<'2 %hnnc::'2 ~~/1<~~.0044X^^D -78>>* -;  %t1 $2 r   c                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   r   {   s      *A r   c                	   . pT;'       g    \        4       pV P                  Vn        V F  p\        V\        P
                  4      '       d   \        VP                  VR 7      p\        V\        4      '       d   VP                  \        4       Kg  \        VR4      '       g   VP                  \        4       K  VP                  VP                  4       K  VP                  V4       K  	  V# )r   elts)r   r   rF   r'   r   Starredr   r.   r   appendr   hasattrextendrS   )r+   r   r   rK   r,   rM   s   &&&   r   r#   CallSite._unpack_args{   s    //-/ $ 9 9C#u}}--%ciiAh88MM+.x00MM+.hmm,c"  r   c               $    V ^8  d   QhRRRRRR/# )r   funcnoder
   rL   rI   r   r   r   )r   s   "r   r   r      s)     h
 h
'h
/2h
=Mh
r   c           
        \        V\        P                  \        P                  34      '       g   \	        RV: R2V VVVR7      hW P
                  9   d   \	        RV VVVR7      h V P                  V,          P                  V4      #   \         d     Mi ; i\        T P                  4      \        TP                  P                  4      8  dI   TP                  P                  '       g-   TP                  P                  '       g   \	        RT TTTR7      hT P                  R\        TP                  P                  4       pT P                  \        TP                  P                  4      R pY!P                  P                  TP                  P                  39   d   RpM"TP                  P                  T4      ^ ,          pTP                  P                    Uu0 uF  qwP"                  kK  	  Mu upi ppT P                  P%                  4        U	U
u/ uF  w  rY9  g   K  YbK  	  Mu up
p	i pp	p
\        T4      \        TP                  P                  4      8  d]   TP                  P                   FB  pTP"                  T9   g   K  TP'                  TP"                  4      pTP)                  T4       KD  	  TEe   TP*                  pT^ 8X  Ed"   TP,                  R9   Ed   Tf3   TP,                  R8X  d"   T'       d   T^ ,          P                  TR	7      # Tf   TP.                  P1                  4       p\        T\        P2                  4      '       d<   TP.                  P5                  4       pYP7                  TR	7      J d   \9        T34      # TP,                  R8X  d3   \        T\:        4      '       g   TP=                  4       p\9        T34      # TP,                  R8X  d   \9        T34      # TP,                  R9   d   T'       d
   T^,          p T P                  T,          P                  T4      #   \>         d     Mi ; iTP                  P                  T8X  Ed   T PA                  4       '       d'   \	        R
T P                  T PB                  T TTTR7      h\        PD                  ! TP                  PF                  TP                  PH                  TP                  TP                  PJ                  TP                  PL                  R7      pTPO                  TP%                  4        U	U
u. uF  w  r\        PP                  ! T	4      T
3NK  	  Mu up
p	i up
p	4       \9        T34      # TP                  P                  T8X  d   T PS                  4       '       d'   \	        RT P                  T PT                  T TTTR7      h\        PV                  ! TP                  PF                  TP                  PH                  TP                  R7      pTPO                  T4       \9        T34      #  TP                  PY                  T4      P                  T4      #   \Z         d     Mi ; i\	        RT TTTR7      h)z>Infer a function argument value according to the call context.z<Can not infer function argument value for non-function node .)	call_sitefuncr,   r   z9The arguments passed to {func!r} have duplicate keywords.zJToo many positional arguments passed to {func!r} that does not have *args.Nmethodclassmethodr   zInference failed to find values for all keyword arguments to {func!r}: {unpacked_kwargs!r} doesn't correspond to {keyword_arguments!r}.)r*   unpacked_kwargsr]   r^   r,   r   )lineno
col_offsetparent
end_linenoend_col_offsetzInference failed to find values for all positional arguments to {func!r}: {unpacked_args!r} doesn't correspond to {positional_arguments!r}.)r(   unpacked_argsr]   r^   r,   r   )rb   rc   rd   z-No value found for argument {arg} to {func!r}>   r_   r`   ).r'   r   FunctionDefLambdar   r"   r*   inferKeyErrorr<   r(   r   varargposonlyargskwargfind_argname
kwonlyargsrL   r)   poprU   	boundnodetyperd   frameClassDefscope	metaclassiterr   instantiate_class
IndexErrorrB   r&   rG   rb   rc   re   rf   postinitconst_factoryr>   r$   Tupledefault_valuer	   )r+   rZ   rL   r   
positionalrl   argindexr,   rp   r-   r.   kwargsfunc_argrr   method_scopern   r   s   &&&&             r   infer_argumentCallSite.infer_argument   sr    (U%6%6$EFF NxlZ[\  +++ K 	))$/55g>> 		 t(()C0B0B,CC=='''0I0I0I$& #!#  ../HX]]5G5G1HI
**3x}}/A/A+B+DE MM(((--*=*=>>H}}11$7:H*2--*B*BC*B3hh*BC
C #44::<
<
$ CJ<
 
 z?S!3!344$MM..==F* **X]]3C%%c* /
 ))I1}2K!K $()Bz%a=..w.??$ ( 5 5 7Ii88
 $,??#8#8#:L#':':7':'KK#YL11==H,%i::$-$?$?$A	--==M1-- }} 99iA00:@@II  ==$& ((**$- '+&<&<$($9$9"!#
 
 JJ}}++#==33}}#==33'}};;E NNEK\\^T^zs%%%c*E2^T >!==4' ))++$> *.)B)B"&"5"5"!#
 
 ;;}}++#==33}}D
 MM&!= 	==..t4::7CC 		;
 	
sN   '!B	 	BBG3
H-&H-!P> >QQ:#U
8)Y" "Y0/Y0)r$   r&   r   r"   r*   r(   )NN)N)__name__
__module____qualname____firstlineno____doc__r/   r`   r5   r>   rB   r%   r#   r   __static_attributes__r   r   r   r   r      sC     
0 	1 	1JI!F$h
 h
r   r   N)
__future__r   astroidr   astroid.basesr   astroid.contextr   r   astroid.exceptionsr   r	   astroid.typingr
   astroid.utilr   r   r   r   r   r   r   <module>r      s+   
 #  " 9 8 * A Af
 f
r   