
    Mh                    >    d Z ddlmZ ddlmZ  G d de          ZdS )zJYet another implementation of bunch

attribute-access of items on a dict.
    )annotations)Anyc                  *    e Zd ZdZddZdd	ZddZdS )BunchzA dict with attribute-accesskeystrreturnr   c                r    	 |                      |          S # t          $ r}t          |          |d }~ww xY wN)__getitem__KeyErrorAttributeError)selfr   es      U/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/traitlets/utils/bunch.py__getattr__zBunch.__getattr__   sJ    	-##C((( 	- 	- 	- %%1,	-s    
616valueNonec                2    |                      ||           d S r   )__setitem__)r   r   r   s      r   __setattr__zBunch.__setattr__   s    e$$$$$    	list[str]c                r    t          i           }|                    |                                            |S r   )dirextendkeys)r   namess     r   __dir__zBunch.__dir__   s,    BTYY[[!!!r   N)r   r   r	   r   )r   r   r   r   r	   r   )r	   r   )__name__
__module____qualname____doc__r   r   r    r   r   r   r      sV        &&- - - -% % % %     r   r   N)r#   
__future__r   typingr   dictr   r$   r   r   <module>r(      si     # " " " " "          D     r   