Skip to content

Commit 1da7898

Browse files
committed
type hint fix
1 parent d5fada3 commit 1da7898

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
python-version: ["3.9", "3.10", "3.11", "3.12"]
11+
python-version: ["3.13", "3.14"]
1212

1313
steps:
1414
- uses: actions/checkout@v4

examples/fastapi_example/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
@pytest_asyncio.fixture
20-
async def app() -> AsyncGenerator[FastAPI]:
20+
async def app() -> AsyncGenerator[FastAPI, None]:
2121
"""
2222
A new application for each test allows for complete isolation between
2323
tests.
@@ -28,7 +28,7 @@ async def app() -> AsyncGenerator[FastAPI]:
2828

2929

3030
@pytest_asyncio.fixture
31-
async def client(app: FastAPI) -> AsyncGenerator[AsyncClient]:
31+
async def client(app: FastAPI) -> AsyncGenerator[AsyncClient, None]:
3232
"""Client for calling application handlers"""
3333
async with AsyncClient(
3434
transport=ASGITransport(app=app), base_url="http://test"

examples/fastapi_with_pure_asgi_example/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
@pytest_asyncio.fixture
20-
async def app() -> AsyncGenerator[FastAPI]:
20+
async def app() -> AsyncGenerator[FastAPI, None]:
2121
"""
2222
A new application for each test allows for complete isolation between
2323
tests.
@@ -28,7 +28,7 @@ async def app() -> AsyncGenerator[FastAPI]:
2828

2929

3030
@pytest_asyncio.fixture
31-
async def client(app: FastAPI) -> AsyncGenerator[AsyncClient]:
31+
async def client(app: FastAPI) -> AsyncGenerator[AsyncClient, None]:
3232
"""Client for calling application handlers"""
3333
async with AsyncClient(
3434
transport=ASGITransport(app=app), base_url="http://test"

examples/starlette_example/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def app() -> AsyncGenerator[Starlette]:
2828

2929

3030
@pytest_asyncio.fixture
31-
async def client(app: Starlette) -> AsyncGenerator[AsyncClient]:
31+
async def client(app: Starlette) -> AsyncGenerator[AsyncClient, None]:
3232
"""Client for calling application handlers"""
3333
async with AsyncClient(
3434
transport=ASGITransport(app=app), base_url="http://test"

0 commit comments

Comments
 (0)