o
    "h                     @  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 )zRegistered 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   G/var/www/html/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    