"""Plan feature dependencies: get_plan_service.""" from typing import Annotated from fastapi import Depends from app.core.dependencies import get_current_user from app.features.plan.service import PlanService from app.features.quota.deps import get_quota_service from app.features.quota.service import QuotaService from app.features.user.models import User from app.core.deps_types import DbDep def get_plan_service( quota_service: Annotated[QuotaService, Depends(get_quota_service)], ) -> PlanService: return PlanService(quota_service=quota_service) PlanServiceDep = Annotated[PlanService, Depends(get_plan_service)] CurrentUserDep = Annotated[User, Depends(get_current_user)]