Skip to content

Commit eb529dc

Browse files
committed
Fix last type errors
1 parent b004c2f commit eb529dc

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Backend:
1010
- Containerization with Docker and Uvicorn for serving
1111
- Ruff for style checks
1212
- Github Actions as CI/CD for automatic code checking, using Ruff and ESLint
13+
- mypy for static type checking
1314

1415
Frontend:
1516
- Usage of React and Next.js
@@ -19,7 +20,6 @@ Frontend:
1920

2021
TODO:
2122
- Alembi for Database migrations
22-
- mypy for static type checking
2323

2424

2525
# Installation

backend/app/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
@asynccontextmanager
13-
async def lifespan(app: FastAPI) -> AsyncGenerator[None]:
13+
async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]:
1414
# Load the ML model
1515
create_db_and_tables()
1616
yield

backend/app/db.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from sqlalchemy_utils import database_exists, create_database
2-
from sqlmodel import Session, create_engine, SQLModel, Engine
2+
from sqlmodel import Session, create_engine, SQLModel
3+
from sqlalchemy.engine import Engine
34
from .settings import settings
45

56

0 commit comments

Comments
 (0)