Skip to content

Commit a8c4452

Browse files
ActivityHandler inheriting from Bot (#1443)
Co-authored-by: tracyboehrer <tracyboehrer@users.noreply.github.com>
1 parent 5f58045 commit a8c4452

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libraries/botbuilder-core/botbuilder/core/activity_handler.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
HealthCheckResponse,
1313
)
1414

15+
from .bot import Bot
1516
from .bot_adapter import BotAdapter
1617
from .healthcheck import HealthCheck
1718
from .serializer_helper import serializer_helper
@@ -20,7 +21,7 @@
2021
from .turn_context import TurnContext
2122

2223

23-
class ActivityHandler:
24+
class ActivityHandler(Bot):
2425
"""
2526
Handles activities and should be subclassed.
2627
@@ -30,7 +31,9 @@ class ActivityHandler:
3031
in the derived class.
3132
"""
3233

33-
async def on_turn(self, turn_context: TurnContext):
34+
async def on_turn(
35+
self, turn_context: TurnContext
36+
): # pylint: disable=arguments-differ
3437
"""
3538
Called by the adapter (for example, :class:`BotFrameworkAdapter`) at runtime
3639
in order to process an inbound :class:`botbuilder.schema.Activity`.

0 commit comments

Comments
 (0)