Skip to content

Commit de93d1c

Browse files
CopilotNeiland85
andcommitted
refactor: replace Optional[X] with X | None for Python 3.10+ compatibility
Co-authored-by: Neiland85 <164719485+Neiland85@users.noreply.github.com>
1 parent 2cfa4cb commit de93d1c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/routers/operator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from fastapi import APIRouter, Depends, Path
2-
from typing import Optional
32
from pydantic import BaseModel, Field
43

54
from app.auth.dependencies import get_current_user_flexible, verify_api_key
@@ -295,7 +294,7 @@ async def invoice(
295294
invoice_id: str = Path(
296295
..., description="ID de la factura a generar", examples=["INV-2025-789012"]
297296
),
298-
data: Optional[InvoiceRequest] = None,
297+
data: InvoiceRequest | None = None,
299298
_current_user: User | None = current_user_flexible_dep,
300299
) -> InvoiceResponse:
301300
"""

0 commit comments

Comments
 (0)