fix(types): resolver diagnosticos estaticos de tipado y modelos v3.6.1
This commit is contained in:
+2
-3
@@ -2,14 +2,13 @@
|
||||
Database & Persistence Management for FastAPI (Capa 4)
|
||||
Integrates SQLAlchemy Engine, SessionLocal and get_db dependency.
|
||||
"""
|
||||
from typing import Generator
|
||||
from sqlalchemy.orm import Session
|
||||
from typing import Generator, Any
|
||||
from app import create_app, db as flask_db
|
||||
|
||||
# Initialize shared application context
|
||||
flask_app = create_app()
|
||||
|
||||
def get_db() -> Generator[Session, None, None]:
|
||||
def get_db() -> Generator[Any, None, None]:
|
||||
"""
|
||||
FastAPI dependency yielding the SQLAlchemy session within Flask app context
|
||||
to guarantee all models, ORM queries and services work seamlessly.
|
||||
|
||||
Reference in New Issue
Block a user