o
    ßñhó  ã                   @  sP   d dl mZ d dlmZmZmZ d dlmZmZ ddd„Z	dd	d
„Z
g d¢ZdS )é    )Úannotations)ÚRuntimeÚRuntimeConfigÚRuntimeState)ÚSessionClientÚSessionClientDisconnectedErrorÚreturnr   c                   C  ó   t  ¡ S )zfReturn the singleton Runtime instance. Raise an Error if the
    Runtime hasn't been created yet.
    )r   Úinstance© r   r   úN/var/www/vscode/kcb/lib/python3.10/site-packages/streamlit/runtime/__init__.pyÚget_instance   s   r   Úboolc                   C  r	   )a  True if the singleton Runtime instance has been created.

    When a Streamlit app is running in "raw mode" - that is, when the
    app is run via `python app.py` instead of `streamlit run app.py` -
    the Runtime will not exist, and various Streamlit functions need
    to adapt.
    )r   Úexistsr   r   r   r   r      s   r   )r   r   r   r   r   r   r   N)r   r   )r   r   )Ú
__future__r   Ústreamlit.runtime.runtimer   r   r   Ú!streamlit.runtime.session_managerr   r   r   r   Ú__all__r   r   r   r   Ú<module>   s   

