a
    Cøgœ  ã                   @   sD   d dl mZmZ er<d dl mZ d dlmZ G dd„ dƒZneZdS )é    )ÚTYPE_CHECKINGÚOptional)ÚAny)ÚModelc                   @   s„   e Zd ZdZee eee dœdd„Z	ee eee dœdd„Z
ee ee eee dœdd	„Zdeeee eee dœdd„Zd
S )ÚTypedDatabaseRoutera  
        Typed base class for Django's DATABASE_ROUTERS setting. At runtime this is just an alias to `object`.

        All methods are optional.

        Django documentation: https://docs.djangoproject.com/en/stable/topics/db/multi-db/#automatic-database-routing
        )ÚmodelÚhintsÚreturnc                 K   s   d S ©N© ©Úselfr   r   r   r   úY/var/www/lab.imftr.de/x/nb_venv/lib/python3.9/site-packages/django_stubs_ext/db/router.pyÚdb_for_read   ó    zTypedDatabaseRouter.db_for_readc                 K   s   d S r
   r   r   r   r   r   Údb_for_write   r   z TypedDatabaseRouter.db_for_write)Úobj1Úobj2r   r	   c                 K   s   d S r
   r   )r   r   r   r   r   r   r   Úallow_relation   r   z"TypedDatabaseRouter.allow_relationN)ÚdbÚ	app_labelÚ
model_namer   r	   c                 K   s   d S r
   r   )r   r   r   r   r   r   r   r   Úallow_migrate   s    z!TypedDatabaseRouter.allow_migrate)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Útyper   r   r   Ústrr   r   Úboolr   r   r   r   r   r   r      s     ÿþr   N)Útypingr   r   r   Zdjango.db.modelsr   r   Úobjectr   r   r   r   Ú<module>   s
   