8000 adding types · TheCompuGuru/botbuilder-python@e3f208f · GitHub
[go: up one dir, main page]

Skip to content

Commit e3f208f

Browse files
committed
adding types
1 parent 9a5db0f commit e3f208f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

libraries/botbuilder-core/botbuilder/core/teams/teams_activity_handler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,12 @@ async def on_teams_messaging_extension_submit_action_dispatch(
248248

249249
if action.bot_message_preview_action == "edit":
250250
return await self.on_teams_messaging_extension_bot_message_preview_edit(
251-
turn_context, action
251+
turn_context, deserializer_helper(MessagingExtensionAction, action)
252252
)
253253

254254
if action.bot_message_preview_action == "send":
255255
return await self.on_teams_messaging_extension_bot_message_preview_send(
256-
turn_context, action
256+
turn_context, deserializer_helper(MessagingExtensionAction, action)
257257
)
258258

259259
raise _InvokeResponseException(
@@ -262,12 +262,12 @@ async def on_teams_messaging_extension_submit_action_dispatch(
262262
)
263263

264264
async def on_teams_messaging_extension_bot_message_preview_edit( # pylint: disable=unused-argument
265-
self, turn_context: TurnContext, action
265+
self, turn_context: TurnContext, action: MessagingExtensionAction
266266
) -> MessagingExtensionActionResponse:
267267
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
268268

269269
async def on_teams_messaging_extension_bot_message_preview_send( # pylint: disable=unused-argument
270-
self, turn_context: TurnContext, action
270+
self, turn_context: TurnContext, action: MessagingExtensionAction
271271
) -> MessagingExtensionActionResponse:
272272
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
273273

libraries/botbuilder-testing/botbuilder/testing/storage_base_tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
"""
25
Base tests that all storage providers should implement in their own tests.
36
They handle the storage-based assertions, internally.

0 commit comments

Comments
 (0)
0