+
    hvh4  c                   s   ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHtH	t	 ^ RI
HtHt ^ RIHt ]! ]]4      t/ t ! R R]P$                  4      t ! R R	4      tR
 tR t]t R tR tR/ / ]^3R ltRR ltR tR tR# )    N)PyGIDeprecationWarning)CallableInfopygobject_new_full)	TYPE_NONETYPE_INVALID)extend_pathc                   sX   a a ] tR t^t oRtRtV 3R ltR tR tV 3R lt	R t
RtVtV ;t# )OverridesProxyModulez7Wraps a introspection module and contains all overridesc                sT   < \         SV `  VP                  4       Wn        / V n        R # N)super__init____name___introspection_module_deprecations)selfintrospection_module	__class__s   &&</usr/lib64/python3.14/site-packages/gi/overrides/__init__.pyr
   ZOverridesProxyModule.__init__   s%    -667%9"    c                s    WP                   9   d0   V P                   V,          w  r#\        P                  ! V^R7       V# \        V P                  V4      # )i   
stacklevel)r   warningswarngetattrr   )r   namevalueZwarnings   &&  r   __getattr__Z OverridesProxyModule.__getattr__   sF    %%%!//5NEMM'a0Lt11488r   c                s    R pWP                   9   d   V P                   V RpWP                  9   d   V P                  V Rp \        V P                  V4       R#   \         d    T'       g   h  R# i ; i)FTN)Z__dict__r   delattrr   AttributeError)r   r   Zfounds   && r   __delattr__Z OverridesProxyModule.__delattr__&   sp    == d#E%%%""4(E	D..5 	 	s   A A2-A21A2c                s   < \        \        SV `	  4       4      pVP                  V P                  P                  4       4       VP                  \        V P                  4      4       \        V4      # r   )	Zsetr	   __dir__updater   ZkeysZdirr   sorted)r   Zresultr      & r   r   ZOverridesProxyModule.__dir__5   sP    UW_&'d((--/0c$4456f~r   c                sP    R \        V 4      P                   RV P                  : R2# )Z<Z Z>)typer   r   )r   s   &r   __repr__ZOverridesProxyModule.__repr__;   s)    4:&&'q)C)C(FaHHr   )r   r   )r   
__module____qualname____firstlineno____doc__Z	__slots__r
   r   r   r   r#   __static_attributes____classdictcell__Z__classcell__)r   __classdict__s   @@r   r   r      s-     A:I 
9I Ir   r   c                   s<   a  ] tR t^?t o RtR tR tR tR tRt	V t
R# )_DeprecatedAttributezA deprecation descriptor for OverridesProxyModule subclasses.

Emits a PyGIDeprecationWarning on every access and tries to act as a
normal instance attribute (can be replaced and deleted).
c                sP    W n         W0n        \        V R V RV R24      V n        R# ). is deprecated; use  insteadN)_attr_valuer   _warning)r   	namespaceattrr   replacements   &&&&&r   r
   Z_DeprecatedAttribute.__init__F   s/    
.k4& 4[MJ
r   c                s    Vf   \        V P                  4      h\        P                  ! V P                  ^R7       V P
                  # )Nr   )r   r/   r   r   r1   r0   )r   instanceZowner   &&&r   __get__Z_DeprecatedAttribute.__get__M   s3     ,,dmm2{{r   c                s`    V P                   p\        \        V4      V4       \        WV4       R # r   )r/   r   r"   setattr)r   r5   r   r3   s   &&& r   __set__Z_DeprecatedAttribute.__set__S   s#    zzX%&r   c                sD    \        \        V4      V P                  4       R # r   )r   r"   r/   )r   r5   s   &&r   
__delete__Z_DeprecatedAttribute.__delete__Y   s    X

+r   )r/   r0   r1   N)r   r$   r%   r&   r'   r
   r7   r9   r:   r(   r)   )r*   s   @r   r+   r+   ?   s#     
', ,r   r+   c           
     s   V P                   P                  R^4      R
,          pRV,           pV\        P                  9   p\        P                  P	                  V4      p\        V 4      pV\        P                  V&   ^RIHp WVV&    RV,           p\        P                  P                  V4      pVe   VP                  MRp	V	f2   T Wa \        P                  V V'       d   V\        P                  V&   # # \        P                  ! V4      p
Wa \        P                  V V'       d   V\        P                  V&   YUn        . p\        T
R4      '       d   T
P                  pT F  p \        Y4      p\%        Y\T4       K  	  \&        P)                  T. 4       F?  w  r \        Y^4      p\-        Y^4       T\/        T RT RT R	24      3TP0                  T&   KA  	  T#   Ya \        P                  T T'       d   T\        P                  T&   i i ; i  \         \"        3 d     K  i ; i  \          d    \+        T R24      hi ; i)zLoads overrides for an introspection module.

Either returns the same module again in case there are no overrides or a
proxy module including overrides. Doesn't cache the result.
r,   gi.repository.)moduleszgi.overrides.N__all__z/ was set deprecated but wasn't added to __all__r-   r.   )r   rsplitsysr<   Zgetr   Zimporter	importlibZutilZ	find_specZloaderZimport_moduleZ_overrides_moduleZhasattrr=   r   r   	TypeErrorr8   _deprecated_attrspopZAssertionErrorr   r   r   )r   r2   Z
module_keyZhas_oldZ
old_moduleZproxyr<   Zoverride_package_nameZspecZoverride_loaderZoverride_modZoverride_allZvarZitemr3   r4   r   s   &                r   load_overridesrE   ^   s?    %--44S!<R@I!I-J CKK'G,J !56E#CKK
 # I1 /) ;~~''(=>)-)9$++t "'
 KK
#&0CKK
#  !../DE KK
#&0CKK
# $L|Y''#++	<-D 	D!  /229bA	E(E
 	"+Qtf$8XN%
D! B LS KK
#&0CKK
# " 	* 		  	 &GH 	s0   ?G 7G 'HH)1HH&%H&)Ic                s  a \        V \        4      '       dL   T pVP                  P                  R^4      R,          p\        P
                  RV,           ,          oV3R lpV# \        V \        P                  4      '       d   \        RV  24      h \        V R4      pT P                  P                  R4      '       g   \        R	T  R
T P                   R24      hTP                  4       pT\        8w  d   Yn        T P                  P                  R^4      R,          p\        P
                  RT,           ,          o\#        ST P                  T 4       T #   \         d    \        RT P                   R24      hi ; i)zDecorator for registering an override.

Other than objects added to __all__, these can get referenced in the same
override module via the gi.repository module (get_parent_for_object() does
for example), so they have to be added to the module immediately.
r,   r;   c                 s6   < \        SV P                  V 4       V # r   )r8   r   )funcmodules   &r   wrapperZoverride.<locals>.wrapper   s    FDMM40Kr   z func must be a gi function, got Z__info__zCan not override a type z1, which is not in a gobject introspection typelibzgi.overrideszNYou have tried override outside of the overrides module. This is not allowed (, Z)r>   )Z
isinstancer   r$   r?   r@   r<   typesZFunctionTyperB   r   r   r   Z
startswithZKeyErrorZ
get_g_typer   Zpytyper8   )Ztype_rF   r2   rH   ZinfoZg_typerG   s   &     @r   overriderK      sc    %&&OO**3226	-	9:	 %++,,:5'BCC
uj) &&~66$$)7"U-=-=,>aA
 	

 __F  ''Q/3I[[)I56FFENNE*L+  
&u~~&6 7$ $
 	

s   E %E;c                sJ   a a \         P                  ! S 4      V V3R l4       pV# )z8Decorator for marking methods and classes as deprecated.c                  sn   < \         P                  ! SP                   R S R2\        ^R7       S! V / VB # )r-   r.   r   )r   r   r   r   )argskwargsfnr4   s   *,r   wrappedZdeprecated.<locals>.wrapped   s<    {{m/}HE"	

 4"6""r   	functoolsZwraps)rN   r4   rO   s   ff r   
deprecatedrR      s'     __R# # Nr   c                sR    \         P                  V . 4      P                  W34       R# )a  Marks a module level attribute as deprecated. Accessing it will emit
a PyGIDeprecationWarning warning.

e.g. for ``deprecated_attr("GObject", "STATUS_FOO", "GLib.Status.FOO")``
accessing GObject.STATUS_FOO will emit:

    "GObject.STATUS_FOO is deprecated; use GLib.Status.FOO instead"

:param str namespace:
    The namespace of the override this is called in.
:param str namespace:
    The attribute name (which gets added to __all__).
:param str replacement:
    The replacement text which will be included in the warning.
N)rC   Z
setdefaultappend)r2   r3   r4   r6   r   deprecated_attrrT      s"        B/667JKr   c                s,   a aaaaaa VVVVVVV 3R lpV# )a  Wrapper for deprecating GObject based __init__ methods which specify
defaults already available or non-standard defaults.

:param callable super_init_func:
    Initializer to wrap.
:param list arg_names:
    Ordered argument name list.
:param list ignore:
    List of argument names to ignore when calling the wrapped function.
    This is useful for function which take a non-standard keyword that is munged elsewhere.
:param dict deprecated_aliases:
    Dictionary mapping a keyword alias to the actual g_object_newv keyword.
:param dict deprecated_defaults:
    Dictionary of non-standard defaults that will be used when the
    keyword is not explicitly passed.
:param Exception category:
    Exception category of the error.
:param int stacklevel:
    Stack level for the deprecation passed on to warnings.warn
:returns: Wrapped version of ``super_init_func`` which gives a deprecation
    warning when non-keyword args or aliases are used.
:rtype: callable
c                s  < V'       dZ   \         P                  ! RP                  RP                  SR\	        V4       4      4      S	SR7       \        \        SV4      4      pM/ pVP                  V4       . pS
P                  4        F1  w  rVWc9   g   K  VP                  V4      W5&   VP                  V4       K3  	  V'       dd   \         P                  ! RP                  RP                  V
3R l\        V4       4       4      RP                  \        V4      4      4      S	SR7       . pS F'  pWS9  g   K  SV,          W5&   VP                  V4       K)  	  V'       dK   \         P                  ! RP                  RP                  V3R l\        V4       4       4      4      S	SR7       S F  pWS9   g   K  VP                  V4       K  	  S! V 3/ VB # )	zvInitializer for a GObject based classes with support for property
sets through the use of explicit keyword arguments.
zUsing positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "{}" or use a class specific constructor. See: https://wiki.gnome.org/Projects/PyGObject/InitializerDeprecationsrI   Nr   zThe keyword(s) "{}" have been deprecated in favor of "{}" respectively. See: https://wiki.gnome.org/Projects/PyGObject/InitializerDeprecationsc              3   s6   <"   T F  pSV,          x  K  	  R # 5ir    ).0kdeprecated_aliasesr!   r   	<genexpr>4deprecated_init.<locals>.new_init.<locals>.<genexpr>E  s     R=Q033=Qs   zInitializer is relying on deprecated non-standard defaults. Please update to explicitly use: {} See: https://wiki.gnome.org/Projects/PyGObject/InitializerDeprecationsc              3   s>   <"   T F  q R SV,           2x  K  	  R# 5i)Z=NrU   )rV   rW   deprecated_defaultsr!   r   rY   rZ   X  s%      AVA#Q21567AVs   )r   r   ZformatZjoinlenZdictZzipr   ZitemsrD   rS   r    )r   rL   rM   Z
new_kwargsZaliases_usedZkeyZaliasZdefaults_used	arg_namescategoryrX   r[   ignorer   super_init_funcs   &*,     r   new_initZ!deprecated_init.<locals>.new_init&  s   
 MMYY_Y_IIi#d)45Z % c)T23JJ&! ,224JC"",.."7
##C( 5
 MMYY_Y_IIRVL=QRRIIf\23Z % &C$"5c":
$$S) '
 MMYY_Y_II AGAV Z
 %
 C s#  t2z22r   rU   )r`   r]   r_   rX   r[   r^   r   ra   s   fffffff r   deprecated_initrb     s    H?3 ?3B Or   c                sR   a aaa \         P                  ! S 4      VVVV 3R l4       pV# )zTranslate method's return value for stripping off success flag.

There are a lot of methods which return a "success" boolean and have
several out arguments. Translate such a method to return the out arguments
on success and None on failure.
c                  s   < S! V / VB pV^ ,          '       d#   \        V4      ^8X  d
   V^,          # VR,          # S'       d   S! S;'       g    R4      hS# )r    :i   NNzcall failed)r\   )rL   rM   Zretexc_strexc_typefail_retmethods   *, r   rO   Z%strip_boolean_result.<locals>.wrappedr  sS    d%f%q663x1}1vr7N733m44r   rP   )rf   rd   rc   re   rO   s   ffff r   strip_boolean_resultrg   j  s'     __V  Nr   c                    a  V 3R  lpV# )c                 H   < \        V R 4      p \        VR 4      pS! W.VO5!  # Fr   ZaZbZ	user_datarF      &&*r   wrapZ'wrap_list_store_sort_func.<locals>.wrap  +    q%(q%(A%9%%r   rU   rF   rn      f r   wrap_list_store_sort_funcrr         &
 Kr   c                 rh   )c                 ri   rj   rk   rl   rm   r   rn   Z(wrap_list_store_equal_func.<locals>.wrap  ro   r   rU   rp   rq   r   wrap_list_store_equal_funcrt     rs   r   rU   )NNN)rQ   rJ   r   rA   r@   Zgir   Zgi._gir   r   Zgi._constantsr   r   Zpkgutilr   Z__path__r   rC   Z
ModuleTyper   r+   rE   rK   ZoverridefuncrR   rT   rb   rg   rr   rt   rU   r   r   <module>ru      s        
 % 3 1  x*  'I5++ 'IT, ,>Nb*Z  L, #eP,r   