Skip to content

Commit f9db4de

Browse files
committed
Fix fastapi adapter to work without aiohttp installation
1 parent 443720d commit f9db4de

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

samples/fastapi/async_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# ------------------------------------------------
77

88
from slack_bolt.async_app import AsyncApp
9-
from slack_bolt.adapter.fastapi import AsyncSlackRequestHandler
9+
from slack_bolt.adapter.fastapi.async_handler import AsyncSlackRequestHandler
1010

1111
app = AsyncApp()
1212
app_handler = AsyncSlackRequestHandler(app)

samples/fastapi/async_oauth_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# ------------------------------------------------
77

88
from slack_bolt.async_app import AsyncApp
9-
from slack_bolt.adapter.fastapi import AsyncSlackRequestHandler
9+
from slack_bolt.adapter.fastapi.async_handler import AsyncSlackRequestHandler
1010

1111
app = AsyncApp()
1212
app_handler = AsyncSlackRequestHandler(app)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
from ..starlette.async_handler import AsyncSlackRequestHandler # noqa
1+
# Don't add async module imports here
22
from ..starlette.handler import SlackRequestHandler # noqa
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from ..starlette.async_handler import AsyncSlackRequestHandler # noqa

0 commit comments

Comments
 (0)