
    ^hs                     P    S r SSKrSSKJr   " S S\\\R                  4   5      rg)	Utilities    N)Mappingc                   0    \ rS rSrSrS rS rS rS rSr	g)	LazyDict   zLazy evaluated read-only dictionary.

Initialised with a dictionary of key-value pairs where the values are either
constants or callables. Callables are evaluated each time the respective item is
read.
c                     Xl         g N_dict)selfdicts     I/home/james-whalen/.local/lib/python3.13/site-packages/ipykernel/utils.py__init__LazyDict.__init__   s    
    c                 j    U R                   R                  U5      n[        U5      (       a  U" 5       $ U$ r	   )r   getcallable)r   keyitems      r   __getitem__LazyDict.__getitem__   s)    zz~~c"!$tv1T1r   c                 ,    [        U R                  5      $ r	   )lenr   r   s    r   __len__LazyDict.__len__   s    4::r   c                 ,    [        U R                  5      $ r	   )iterr   r   s    r   __iter__LazyDict.__iter__   s    DJJr   r
   N)
__name__
__module____qualname____firstlineno____doc__r   r   r   r    __static_attributes__ r   r   r   r      s    2 r   r   )r&   typingtcollections.abcr   strAnyr   r(   r   r   <module>r.      s'      # wsAEEz"  r   