Skip to content

Commit 306bfd3

Browse files
committed
chore(mypy): fix import and type annotation on async graphql
1 parent fe713c3 commit 306bfd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/event_handler_graphql/src/assert_async_graphql_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pathlib import Path
44

55
import pytest
6-
from assert_async_graphql_response_module import Location, app # instance of AppSyncResolver
6+
from assert_async_graphql_response_module import Todo, app # instance of AppSyncResolver
77

88

99
@pytest.fixture
@@ -24,7 +24,7 @@ async def test_async_direct_resolver(lambda_context):
2424
fake_event = json.loads(Path("assert_async_graphql_response.json").read_text())
2525

2626
# WHEN
27-
result: list[Location] = await app(fake_event, lambda_context)
27+
result: list[Todo] = await app(fake_event, lambda_context)
2828
# alternatively, you can also run a sync test against `lambda_handler`
2929
# since `lambda_handler` awaits the coroutine to complete
3030

0 commit comments

Comments
 (0)