Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions libraries/botbuilder-core/botbuilder/core/activity_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
HealthCheckResponse,
)

from .bot import Bot
from .bot_adapter import BotAdapter
from .healthcheck import HealthCheck
from .serializer_helper import serializer_helper
Expand All @@ -20,7 +21,7 @@
from .turn_context import TurnContext


class ActivityHandler:
class ActivityHandler(Bot):
"""
Handles activities and should be subclassed.

Expand All @@ -30,7 +31,9 @@ class ActivityHandler:
in the derived class.
"""

async def on_turn(self, turn_context: TurnContext):
async def on_turn(
self, turn_context: TurnContext
): # pylint: disable=arguments-differ
"""
Called by the adapter (for example, :class:`BotFrameworkAdapter`) at runtime
in order to process an inbound :class:`botbuilder.schema.Activity`.
Expand Down