
    MhA                        d dl Z d dlmZmZ  e            Zd Zd Zd Zd Z	d Z
d Z G d	 d
          Zej        Zej        d         Zej        d         Zej        d         ZeeeegZ e eee                    Zd ZdS )    N)of_type
CannotEvalc                 L    t           j        d                             |           S )N__mro__)type__dict____get__)klasss    [/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pure_eval/my_getattr_static.py_static_getmror      s    =#++E222    c                     i }	 t                               | d          }n# t          $ r Y nw xY wt                              ||t
                    S Nr   )object__getattribute__AttributeErrordictget	_sentinel)objattrinstance_dicts      r   _check_instancer      sY    M//Z@@   88M4333s     
--c                     t          |           D ]E}t          t          |                    t          u r 	 |j        |         c S # t
          $ r Y Aw xY w t          S N)r   _shadowed_dictr   r   r   KeyError)r
   r   entrys      r   _check_classr      su    &&  $u++&&)33~d++++    s   A
AAc                 J    	 t          |            n# t          $ r Y dS w xY wdS )NFT)r   	TypeError)r   s    r   _is_typer"   !   s?    s   uu4s    
  c                    t           j        d         }t          |           D ]a}	 |                    |          d         }t          |          t          j        u r|j        dk    r	|j        |u s|c S R# t          $ r Y ^w xY wt          S r   )
r   r   r   r	   typesGetSetDescriptorType__name____objclass__r   r   )r
   	dict_attrr   
class_dicts       r   r   r   )   s    j)I&& 	" 	"	""**511*=J $$(BBB':55+u44!!!! 5  	 	 	D	 s   A44
B Bc                    t           }t          |           sZt          |           }t          |          }|t           u st          |          t          j        u rt          | |          }n	t          | }t          ||          }|t           ur|t           ur}t          t          |          d          t           urYt          t          |          d          t           us$t          t          |          d          t           urt          || |          S |t           ur|S |t           urBt          t          |          d          }|t           u r|S | |u rd}n| }t          |||          S | |u rt          t          |                    D ]t}t          t          |                    t           u rO	 |j        |         }	t          t          |	          d          }|t           urt          |	c S # t          $ r Y pw xY wut          )a  Retrieve attributes without triggering dynamic lookup via the
       descriptor protocol,  __getattr__ or __getattribute__.

       Note: this function may not be able to retrieve all attributes
       that getattr can fetch (like dynamically created attributes)
       and may find attributes that getattr can't (like descriptors
       that raise AttributeError). It can also return descriptor objects
       instead of instance members in some cases. See the
       documentation for details.
    r	   __set__
__delete__N)r   r"   r   r   r$   MemberDescriptorTyper   r   r   _resolve_descriptorr   r   r   )
r   r   instance_resultr
   r(   klass_resultr   instancer   results
             r   getattr_staticr3   8   s     OC== 	S		"5))	""Y5#===-c488OOt,,Li''L	,I,I\**I66iGGl++Y77yHHD..==YNN&|S%@@@i''9$$4--y99)e||&|XuEEE
e||#DKK00 		 		Ed5kk**i77"^D1F&tF||Y??C)++((!MMM   D 8 s   .;G,,
G98G9c                       e Zd ZdgZd ZdS )_foofooc                      dS )Nr    r8   r   r   <lambda>z_foo.<lambda>v   s    Q r   N)r&   
__module____qualname__	__slots__methodr8   r   r   r5   r5   t   s        IYFFFr   r5   __add__
startswithr=   c                     	 t          t          | gt          R                                | ||          S # t          $ r}t
          |d }~ww xY wr   )r   r   safe_descriptor_typesr	   r   r   )dr1   owneres       r   r.   r.      s_     GA6 566677??8USSS      a s   36 
A AA)r$   pure_eval.utilsr   r   r   r   r   r   r   r"   r   r3   r5   r6   slot_descriptorstrr   wrapper_descriptormethod_descriptoruser_method_descriptorsafe_descriptors_rawlistmapr   rA   r.   r8   r   r   <module>rN      s2    / / / / / / / /FHH	3 3 34 4 4	 	 	    9 9 9x       
 (\), L. x0  	  SS';<<==          r   