Skip to content

Commit 1a73ac4

Browse files
committed
fix: don't import AsyncBoltAgent in agent __init__ to avoid aiohttp dependency
AsyncBoltAgent imports AsyncWebClient which requires aiohttp. Eagerly importing it from the agent package __init__ breaks environments where aiohttp is not installed, since slack_bolt/__init__.py imports BoltAgent from this package. Follows the existing convention of not adding async module imports at the top level.
1 parent c332128 commit 1a73ac4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

slack_bolt/agent/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from slack_bolt.agent.agent import BoltAgent
2-
from slack_bolt.agent.async_agent import AsyncBoltAgent
32

43
__all__ = [
5-
"AsyncBoltAgent",
64
"BoltAgent",
75
]

0 commit comments

Comments
 (0)