Closed
Description
The way to provide the optional parameter, similar to how javascript would need it requires the use of Protocol, the Callable interface is not sufficient.
As it is, the typing says that you require to provide a turn_context to logic, but if you provide it, the function call_next_middleware breaks.
To solve this I am not sure what is the best approach, but as an initial point, could this be added? so at least if you send a turn_context it doesn't throw an error?
async def call_next_middleware(turn_context: TurnContext = None, /):
Otherwise, can that parameter, turnContext, be removed?