-
Notifications
You must be signed in to change notification settings - Fork 297
Open
Labels
bugIndicates an unexpected problem or an unintended behavior.Indicates an unexpected problem or an unintended behavior.
Description
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
4.16.2
Describe the bug
The typing for the middleware on_turn handler is:
def on_turn(self, context: TurnContext, logic: Callable[[TurnContext], Awaitable]): |
Notice the arguments is a
TurnContext
?
However, it's called like:
botbuilder-python/libraries/botbuilder-core/botbuilder/core/middleware_set.py
Lines 83 to 89 in a7f5d91
async def call_next_middleware(): | |
return await self.receive_activity_internal( | |
context, callback, next_middleware_index + 1 | |
) | |
try: | |
return await next_middleware.on_turn(context, call_next_middleware) |
Here call_next_middleware
takes no arguments.
This results in:
TypeError: MiddlewareSet.receive_activity_internal.<locals>.call_next_middleware() takes 0 positional arguments but 1 was given
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or an unintended behavior.Indicates an unexpected problem or an unintended behavior.