o
    [i                     @   s    d dl mZ G dd deZdS )    )defaultdictc                       s.   e Zd ZdZd fdd	Z fddZ  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                    s   || _ t j|i | d S N)	referencesuper__init__)selfr   argskw	__class__ W/home/air/sos/back/venv/lib/python3.10/site-packages/openpyxl/utils/bound_dictionary.pyr      s   zBoundDictionary.__init__c                    s(   t  |}| jd urt|| j| |S r   )r   __getitem__r   setattr)r   keyvaluer   r   r   r      s   
zBoundDictionary.__getitem__r   )__name__
__module____qualname____doc__r   r   __classcell__r   r   r   r   r      s    
r   N)collectionsr   r   r   r   r   r   <module>   s   