o
    éã¤gä  ã                   @  s.   d dl mZ d dlZd dlmZ ddd„ZdS )	é    )ÚannotationsN)Úcurrent_appÚreturnúdict[str, t.Any]c                  C  s*   t jd } dd„ | jjjD ƒ}| |d< |S )z³Registered with :meth:`~flask.Flask.shell_context_processor` if
    ``add_models_to_shell`` is enabled. Adds the ``db`` instance and all model classes
    to ``flask shell``.
    Ú
sqlalchemyc                 S  s   i | ]}|j j|j “qS © )Úclass_Ú__name__)Ú.0Úmr   r   úV/var/www/html/ecg_monitoring/venv/lib/python3.10/site-packages/flask_sqlalchemy/cli.pyÚ
<dictcomp>   s    z'add_models_to_shell.<locals>.<dictcomp>Údb)r   Ú
extensionsÚModelÚ_sa_registryÚmappers)r   Úoutr   r   r   Úadd_models_to_shell   s   
r   )r   r   )Ú
__future__r   ÚtypingÚtÚflaskr   r   r   r   r   r   Ú<module>   s    