Files
dcalc/backend/api/dp.py
T
2025-03-10 15:10:03 +08:00

10 lines
261 B
Python

from typing import Annotated
from redis import Redis
from sqlalchemy.orm import Session
from fastapi import Depends
from database.connect import get_db,get_redis
SessionDep = Annotated[Session, Depends(get_db)]
RedisDep = Annotated[Redis, Depends(get_redis)]