
    hj;                     F    d dl mZmZ  ed      Z G d dee         ZdgZy)    )GenericTypeVarTc                   .    e Zd ZdZdee   fdZdefdZy)	Singletona5  
    Class decorator to make it a Singleton

    This is useful when you want a central engine instance or else
    to be used across your application modules.

    But using such decorator will make it tricky or impossible to
    use your application within several server using the same
    event loop.
    clsc                      |       | _         y N	_instance)selfr   s     G/DATA/.local/lib/python3.12/site-packages/trame_common/obj/singleton.py__init__zSingleton.__init__   s    E    returnc                     | j                   S r
   r   )r   s    r   __call__zSingleton.__call__   s    ~~r   N)__name__
__module____qualname____doc__typer   r   r    r   r   r   r      s#    	"DG "! r   r   N)typingr   r   r   r   __all__r   r   r   <module>r      s-    #CL
 ( r   