
    Cj!                        S SK Jr  S SKrS SKJrJrJrJr  \R                  S:  a  S SK	J
r
  g\" SSS9r\" 5       r " S	 S
\\   5      r
g)    )annotationsN)AnyGenericTypeVaroverload)      )cached_property_T_coT)	covariantc                  ~    \ rS rSrS	S jrS
S jr\SSS jj5       r\ S     SS jj5       r S     SS jjrSrg)r
      c                b    Xl         S U l        UR                  U l        UR                  U l        g N)funcattrname__doc__
__module__)selfr   s     a/home/rurouni/.local/share/pipx/venvs/strix-agent/lib/python3.13/site-packages/textual/_compat.py__init__cached_property.__init__   s$    I DM<<DL"ooDO    c                    U R                   c  X l         g X R                   :w  a  [        SU R                   < SU< S35      eg )Nz?Cannot assign the same cached_property to two different names (z and z).)r   	TypeError)r   ownernames      r   __set_name__cached_property.__set_name__   sI    }}$ $&(dXR9  'r   Nc                    g r    r   instancer   s      r   __get__cached_property.__get__#   s    SVr   c                    g r   r!   r"   s      r   r$   r%   &   s     r   c                   Uc  U $ U R                   c  [        S5      e UR                  nUR                  U R                   [        5      nU[        L a"  U R                  U5      n XSU R                   '   U$ U$ ! [         a5    S[	        U5      R
                  < SU R                   < S3n[        U5      S ef = f! [         a5    S[	        U5      R
                  < SU R                   < S3n[        U5      S ef = f)NzGCannot use cached_property instance without calling __set_name__ on it.zNo '__dict__' attribute on z instance to cache z
 property.zThe '__dict__' attribute on z7 instance does not support item assignment for caching )	r   r   __dict__AttributeErrortype__name__get
_NOT_FOUNDr   )r   r#   r   cachemsgvals         r   r$   r%   +   s     }}$] 	/ )) ))DMM:6Cj ii)3+.$--( J3J% / 2$x.2I2I1L M))-(9E   n$./ ! 36tH~7N7N6Q RHHLGXXbd  $C.d23s   A8 &B: 8?B7:?C9)r   r   r   r   )r   zCallable[[Any, _T_co]]returnNone)r   z	type[any]r   strr1   r2   r   )r#   r2   r   type[Any] | Noner1   Self)r#   objectr   r4   r1   r   )r#   r6   r   r4   r1   z_T_co | Self)	r+   r   __qualname____firstlineno__r   r   r   r$   __static_attributes__r!   r   r   r
   r
      sq    	.	 
V 
V	>B	"	+;		 
	
 ?C	"	+;		 	r   r
   )
__future__r   systypingr   r   r   r   version_info	functoolsr
   r   r6   r-   r!   r   r   <module>r?      sG    " 
 2 2w) Gt,EJ6'%. 6r   