
    Mwg                     &    d dl mZ  G d de      Zy)    )defaultdictc                   .     e Zd ZdZd fd	Z fdZ xZS )BoundDictionarya  
    A default dictionary where elements are tightly coupled.

    The factory method is responsible for binding the parent object to the child.

    If a reference attribute is assigned then child objects will have the key assigned to this.

    Otherwise it's just a defaultdict.
    c                 2    || _         t        |   |i | y N)	referencesuper__init__)selfr   argskw	__class__s       V/var/www/horilla/myenv/lib/python3.12/site-packages/openpyxl/utils/bound_dictionary.pyr
   zBoundDictionary.__init__   s    "$%"%    c                 l    t         |   |      }| j                  t        || j                  |       |S r   )r	   __getitem__r   setattr)r   keyvaluer   s      r   r   zBoundDictionary.__getitem__   s1    #C(>>%E4>>3/r   r   )__name__
__module____qualname____doc__r
   r   __classcell__)r   s   @r   r   r      s    &
 r   r   N)collectionsr   r    r   r   <module>r      s    $k r   