
    g                     0    d dl mZ  G d deeef         Zy)    )Anyc                   .    e Zd ZdZd Zej                  Zy)AttributeDictionarya  
    A dictionary subclass that supports attribute-style access.

    This class extends the functionality of a standard dictionary to allow items to be accessed
    via attribute-style dot notation in addition to the traditional key-based access. If a dictionary
    item is accessed and is itself a dictionary, it is automatically wrapped in another `AttributeDictionary`,
    enabling recursive attribute-style access.
    c                     	 | j                  |      }t        |t              rt        |      S |S # t        $ r+}t        dt        |       j                   d| d      |d }~ww xY w)N'z' object has no attribute ')__getitem__
isinstancedictr   KeyErrorAttributeErrortype__name__)selfkeyitemerrs       W/var/www/openai/venv/lib/python3.12/site-packages/streamlit/elements/lib/event_utils.py__getattr__zAttributeDictionary.__getattr__   so    	##C(D0:40F&t,PDP 	 DJ''((CC5J	s   +0 0 	A$&AA$N)r   
__module____qualname____doc__r   r
   __setitem____setattr__     r   r   r      s     ""Kr   r   N)typingr   r
   r   r   r   r   <module>r      s    #$sCx. #r   