+
    it!                         R t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIH	t	 ^ RI
Ht ^ RIHt / tRt]! 0 Rm4      tR tR tR	 tR
 tR R ltR tR R ltR# )zAstroid hooks for the Python 2 GObject introspection bindings.

Helps with understanding everything imported from 'gi.repository'
N)nodes)AstroidBuilder)AstroidBuildingErrorAstroidManagerz^[A-Za-z_]\w*$c                 V    ^ RI p  V P                  R4       R#   \         d     R# i ; i)z6
Indicates if pygobject supports inspect.signature().
NTF)   3       )gicheck_version
ValueError)r   s    8/usr/lib/python3/dist-packages/astroid/brain/brain_gi.py_gi_supports_inspect_signaturer   9   s2     
$ s    ((c                 *   \        4       '       d?    \        \        P                  ! V 4      4      pVR 8H  ;'       g    VP	                  R4      # \        P                  ! V 4      ;'       g    \        P                  ! V 4      #   \
         d     R# i ; i)z(self)z(self, F)r   strinspect	signature
startswith	Exceptionismethodismethoddescriptor)objsigs   & r   _gi_is_method_callr   H   sz    %''
	g'',-C(???cnnY&?? C CCG$>$>s$CC  		s   *B B BBc                   / p/ p/ p/ p\        V 4       EF  pVP                  R4      '       d   V\        9  d   K(  \        P                  ! \
        V4      '       g   KK   \        W4      p\        P                  ! T4      '       d   YaT&   Ky  \        P                  ! T4      '       g   \        P                  ! T4      '       d   YbT&   K  \        T4      '       d   YdT&   K  \        T4      P                  R4      '       g]   \        T4      P                  R4      '       g=   \        T4      P                  R4      '       g   \        P                  ! T4      '       d   ^ Y5&   EKQ  \        T\         \        34      '       d   YcT&   EKt  \#        T4      '       d   YbT&   EK  ^ Y5&   EK  	  RpV'       d   VRV P$                   R2,          p\'        V4       F{  pV^ ,          P)                  4       '       d   K"  W5,          p\        V4      p	\        V\        4      '       d#   R\        V4      P+                  R	R
4      ,          p	Wu RV	 R2,          pK}  	  V'       d
   VR,          pV'       d   VRV P$                   R2,          p\'        V4       F  pVRV R2,          pVR,          pK  	  V'       d
   VR,          pV'       d   VRV P$                   R2,          p\'        V4       F  pVRV R2,          pVR,          pK  	  V'       d
   VR,          pV'       d   VRV P$                   R2,          p\'        VP-                  4       4       F{  w  rVRp
\/        V\        4      '       d   Rp
VRV RV
 R2,          p\1        V4      pV'       g   RpVP3                  4        F  pVRV,           R,           ,          pK  	  VR,          pK}  	  V#   \         d     EK  i ; i)zT
Inspect the passed module recursively and build stubs for functions,
classes, etc.
__z<flagsz<enum z<GType  z# z constants

z"%s"\z\\z = 
z

z functions

zdef z(*args, **kwargs):
z	    pass
z
 methods

z(self, *args, **kwargs):
z
 classes

objectr   zclass (z):
zpass
z    )dirr   _special_methodsrematch_identifier_regetattrr   r   isclass
isfunction	isbuiltinr   r   isdatadescriptor
isinstanceintcallable__name__sortedisdigitreplaceitems
issubclass_gi_build_stub
splitlines)parentclasses	functions	constantsmethodsnamer   retvalstrvalbaseclassretlines   &            r   r5   r5   V   sO    GIIGF??4  T1A%A xx--	&'C ??3DM$$(9(9#(>(>!dO$$DMH))3x""8,,3x""9--'',,IOc3Z((!dOc]]!dO  IOG J CFOO$N33y!7?? oSc3c#h..tV<<Fs6("%% " vFOO$N33y!dV/00| " vFOO$L11wdV566|   vFOO$L11GMMO,	c9%%DvQtfD))!#&H'')D6D=4''C *t - J]  	 	s    OOOc                 z   V P                  R 4      '       g   \        V R7      hV \        9  Ed   V .p. pV R8X  d   VP                  R4       MV R8X  d   VP                  R4        Rp\        P
                  ! W4       F  p \        P                  ! 4       ;_uu_ 4         ^ RIH	pH
p \        P                  ! RV4       \        P                  ! RV4       \        V4       V\        \        P                   V,          4      ,          pR	R	R	4       K  	  \%        \'        4       4      P)                  W04      pV\        V &   M\        V ,          pVf   \        V R7      hV#   \         d     Li ; i  + '       g   i     EK  ; i  \"         d    YB9  d   h  EK  i ; i  \"         d    R	;p\        T &    Lji ; i)
zgi.repository.)modnamezgi.repository.GLibzgi._glibzgi.repository.GObjectzgi._gobjectr   )PyGIDeprecationWarningPyGIWarningignoreN)r   r   _inspected_modulesappend	itertoolschainwarningscatch_warningsr   rE   rF   simplefilterr   
__import__r5   sysmodulesImportErrorr   r   string_build)rD   modnamesoptional_modnamesmodcodemrE   rF   astngs   &       r   _import_gi_modulerY      s   .//"733((9 **$$Z0//$$]3	0G__XA!0022	!
 %11(<RS$11(KH #1>#++a.#AA 32 B0 #>#34AA'SE*/w'"7+}"733L#  ) ! ! 322  # 1 2  	7266E&w/	7s~   'F! F E2"6E!2E2
FF! !E/	,E2.E/	/E22F=FF! FFF! FF! !F:9F:c                $    V ^8  d   QhR\         /# )   return)bool)formats   "r   __annotate__r_      s           c                 L   \        V P                  4      ^8w  d   R# \        ;QJ d&    R V P                   4       F  '       d   K   RM	  RM! R V P                   4       4      '       g   R# V P                  p\	        V\
        P                  4      '       d]   VP                  R8w  d   R# \	        VP                  \
        P                  4      '       d   VP                  P                  R8X  d   R# R# \	        V\
        P                  4      '       d   VP                  R8H  # R# )r[   Fc              3   V   "   T F  p\        V\        P                  4      x  K!  	  R # 5iN)r,   r   Const).0args   & r   	<genexpr>._looks_like_require_version.<locals>.<genexpr>   s     Ayz#u{{++ys   ')Trequire_versionr   )lenargsallfuncr,   r   	AttributeattrnameexprNamer<   )noderm   s   & r   _looks_like_require_versionrs      s     499~3AtyyA333AtyyAAA99D$((==--dii,,41G$

##yy---r`   c                      ^ RI pVP                  V P                  ^ ,          P                  V P                  ^,          P                  4       V #   \         d     T # i ; i)r
   N)r   ri   rk   valuer   )rr   r   s   & r   _register_require_versionrv   	  sV    
499Q<--tyy|/A/AB K  Ks   AA AAc                (    V ^8  d   QhR\         RR/# )r[   managerr\   Nr   )r^   s   "r   r_   r_     s      n  r`   c                     V P                  \        4       V P                  \        P                  \
        \        4       R # rc   )register_failed_import_hookrY   register_transformr   Callrv   rs   )rx   s   &r   registerr}     s,    ''(9:

-/Jr`   >   __eq____ge____gt____le____lt____ne____del____len____str____bool____exit____hash____iter____next____repr__	__enter____delattr____delitem____getattr____getitem____nonzero____setattr____setitem____contains__)__doc__r   rJ   r$   rP   rL   astroidr   astroid.builderr   astroid.exceptionsr   astroid.managerr   rH   r&   	frozensetr#   r   r   r5   rY   rs   rv   r}    r`   r   <module>r      si   
   	 
   * 3 * " <DcL2j0	r`   