
    fh                     .    d dl mZ  G d de          ZdS )    )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.
    Nc                 H    || _          t                      j        |i | d S N)	referencesuper__init__)selfr   argskw	__class__s       V/var/www/histauto/venv/lib/python3.11/site-packages/openpyxl/utils/bound_dictionary.pyr
   zBoundDictionary.__init__   s,    "$%"%%%%%    c                     t                                          |          }| j        t          || j        |           |S r   )r	   __getitem__r   setattr)r   keyvaluer   s      r   r   zBoundDictionary.__getitem__   s;    ##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      sM    $ # # # # #    k     r   