trying to fix build error--using List from typing for validator type hint
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
-from typing import Callable, Dict
+from typing import Callable, Dict, List
from botbuilder.schema import ActivityTypes, Attachment, InputHints
from botbuilder.core import TurnContext
@@ -18,7 +18,7 @@ class AttachmentPrompt(Prompt):
By default the prompt will return to the calling dialog an `[Attachment]`
"""
- def __init__(self, dialog_id: str, validator: Callable[[[Attachment]], bool]):
+ def __init__(self, dialog_id: str, validator: Callable[List[Attachment], bool]):
super().__init__(dialog_id, validator)
async def on_prompt(
