added TYPE_CHECKING to dependencies.py

This commit is contained in:
2026-06-14 13:47:50 -04:00
parent 8e0ab4190b
commit ab2521867e
+6 -2
View File
@@ -1,11 +1,15 @@
"""FastAPI dependencies."""
from collections.abc import Iterator
from typing import Annotated
from __future__ import annotations
from typing import TYPE_CHECKING, Annotated
from fastapi import Depends, Request
from sqlalchemy.orm import Session
if TYPE_CHECKING:
from collections.abc import Iterator
def get_db(request: Request) -> Iterator[Session]:
"""Get database session from app state."""