ó
    «Rjÿ  ã                   ó8   • S SK r  " S S\5      r " S S\5      rg)é    Nc                   ó8   ^ • \ rS rSrSrU 4S jrU 4S jrSrU =r$ )Ú	Singletoné   z‹
Singleton metaclass
Based on Python Cookbook 3rd Edition Recipe 9.13
Only one instance of a class can exist. Does not work with __slots__
c                 ó4   >• [         TU ]  " U0 UD6  S U l        g ©N)ÚsuperÚ__init__Ú_Singleton__instance©ÚselfÚargsÚkwÚ	__class__s      €ÚED:\diplom_project\venv\Lib\site-packages\openpyxl/compat/singleton.pyr	   ÚSingleton.__init__   s   ø€ Ü‰Ò˜$Ð% "Ò%Øˆ�ó    c                 ó`   >• U R                   c  [        TU ]  " U0 UD6U l         U R                   $ r   )r
   r   Ú__call__r   s      €r   r   ÚSingleton.__call__   s-   ø€ Ø�?‰?Ñ"Ü#™gÒ.°Ð;¸Ñ;ˆDŒOØ�‰Ðr   )Ú
__instance©	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r	   r   Ú__static_attributes__Ú__classcell__©r   s   @r   r   r      s   ø† ñõ÷ó r   r   c                   ó8   ^ • \ rS rSrSrU 4S jrU 4S jrSrU =r$ )ÚCachedé   z‰
Caching metaclass
Child classes will only create new instances of themselves if
one doesn't already exist. Does not work with __slots__
c                 óZ   >• [         TU ]  " U0 UD6  [        R                  " 5       U l        g r   )r   r	   ÚweakrefÚWeakValueDictionaryÚ_Cached__cacher   s      €r   r	   ÚCached.__init__   s%   ø€ Ü‰Ò˜$Ð% "Ò%Ü×2Ò2Ó4ˆ�r   c                 óz   >• XR                   ;   a  U R                   U   $ [        TU ]  " U6 nX R                   U'   U$ r   )r&   r   r   )r   r   Úobjr   s      €r   r   ÚCached.__call__"   s<   ø€ Ø—<‘<ÓØ—<‘< Ñ%Ð%ä‰gÒ Ð%ˆØ �‰�TÑØˆ
r   )Ú__cacher   r   s   @r   r!   r!      s   ø† ñõ5÷ó r   r!   )r$   Útyper   r!   © r   r   Ú<module>r.      s"   ðó ô�ô ô"ˆTõ r   