iFddlZGddeZGddeZdS)Nc,eZdZdZfdZfdZxZS) Singletonz Singleton metaclass Based on Python Cookbook 3rd Edition Recipe 9.13 Only one instance of a class can exist. Does not work with __slots__ cHtj|i|d|_dSN)super__init___Singleton__instanceselfargskw __class__s GC:\PYTHON\_runtimes\venv\Lib\site-packages\openpyxl/compat/singleton.pyrzSingleton.__init__ s*$%"%%%c\|jtj|i||_|jSr)r r__call__r s rrzSingleton.__call__s0 ? ".egg.;;;DOr__name__ __module__ __qualname____doc__rr __classcell__rs@rrrs[ rrc,eZdZdZfdZfdZxZS)Cachedz Caching metaclass Child classes will only create new instances of themselves if one doesn't already exist. Does not work with __slots__ cjtj|i|tj|_dSr)rrweakrefWeakValueDictionary_Cached__cacher s rrzCached.__init__s3$%"%%%244 rct||jvr |j|Stj|}||j|<|Sr)rrr)r r objrs rrzCached.__call__"sA 4<  <% %egg%  T rrrs@rrrs[ 55555rr)rtyperrrrr$sn"Tr