Skip to content

Commit

Permalink
fix return signature
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Nov 21, 2023
1 parent 36db979 commit 14a5399
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yente/app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import time
import aiocron # type: ignore
from uuid import uuid4
from typing import AsyncGenerator
from contextlib import asynccontextmanager
from elasticsearch import ApiError, TransportError
from fastapi import FastAPI
Expand All @@ -27,7 +28,7 @@ async def cron_task() -> None:


@asynccontextmanager
async def lifespan(app: FastAPI):
async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]:
log.info(
"Setting up background refresh",
crontab=settings.CRONTAB,
Expand Down

0 comments on commit 14a5399

Please sign in to comment.