--fix with ruff
This commit is contained in:
@@ -5,11 +5,10 @@ from uuid import UUID
|
||||
|
||||
from fastapi import APIRouter, HTTPException, Query, status
|
||||
|
||||
from app.dependencies import AnalyticsServiceDep, CurrentUserDep, PlanningServiceDep
|
||||
from app.dependencies import CurrentUserDep, PlanningServiceDep
|
||||
from app.models.planned_leave import (
|
||||
PlannedLeaveDayCreate,
|
||||
PlannedLeaveDayResponse,
|
||||
PlannedLeaveDayUpdate,
|
||||
)
|
||||
from app.utils.errors import NotFoundError, ValidationError
|
||||
|
||||
@@ -73,8 +72,6 @@ async def list_planned_days_by_range(
|
||||
_current_user: CurrentUserDep = None,
|
||||
) -> list[PlannedLeaveDayResponse]:
|
||||
# Inject dependencies manually for query parameters
|
||||
from app.dependencies import PlanningServiceDep as PSep
|
||||
from app.dependencies import CurrentUserDep as CUD
|
||||
|
||||
# Since we can't easily pass Query params with FastAPI dependencies,
|
||||
# we'll need to inject them differently
|
||||
|
||||
@@ -4,7 +4,6 @@ Pure functions with no I/O or state. Used by planning and analytics services.
|
||||
"""
|
||||
|
||||
import datetime
|
||||
from typing import Union
|
||||
|
||||
|
||||
def add_months(date: datetime.date, n: int) -> datetime.date:
|
||||
|
||||
Reference in New Issue
Block a user