We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cfa4cb commit de93d1cCopy full SHA for de93d1c
app/routers/operator.py
@@ -1,5 +1,4 @@
1
from fastapi import APIRouter, Depends, Path
2
-from typing import Optional
3
from pydantic import BaseModel, Field
4
5
from app.auth.dependencies import get_current_user_flexible, verify_api_key
@@ -295,7 +294,7 @@ async def invoice(
295
294
invoice_id: str = Path(
296
..., description="ID de la factura a generar", examples=["INV-2025-789012"]
297
),
298
- data: Optional[InvoiceRequest] = None,
+ data: InvoiceRequest | None = None,
299
_current_user: User | None = current_user_flexible_dep,
300
) -> InvoiceResponse:
301
"""
0 commit comments