Skip to content

Commit

Permalink
Pin pydantic<2 and fastapi
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Jul 11, 2023
1 parent 029fa16 commit fe5ec40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ert/dark_storage/database.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import os
from typing import Any
from typing import Any, Callable

from fastapi import Depends
from sqlalchemy import create_engine
from sqlalchemy.exc import DBAPIError
from sqlalchemy.orm import declarative_base, sessionmaker
from sqlalchemy.orm import Session as SessionType
from sqlalchemy.sql import text

from ert_storage.security import security
Expand All @@ -31,7 +32,7 @@ def get_env_rdbms() -> str:
engine = create_engine(URI_RDBMS, connect_args={"check_same_thread": False})
else:
engine = create_engine(URI_RDBMS, pool_size=50, max_overflow=100)
Session = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Session: Callable = sessionmaker(autocommit=False, autoflush=False, bind=engine)


Base = declarative_base()
Expand Down

0 comments on commit fe5ec40

Please sign in to comment.