Fixed type hint in turn_context.py (#2147)
Previous type hint implied that send_activity will always return ResourceResponse, meanwhile it can also return None Co-authored-by: tracyboehrer <tracyboehrer@users.noreply.github.com>
This commit is contained in:
Родитель
31dd5693bc
Коммит
1e5102b2e4
|
@ -158,7 +158,7 @@ class TurnContext:
|
|||
activity_or_text: Union[Activity, str],
|
||||
speak: str = None,
|
||||
input_hint: str = None,
|
||||
) -> ResourceResponse:
|
||||
) -> Union[ResourceResponse, None]:
|
||||
"""
|
||||
Sends a single activity or message to the user.
|
||||
:param activity_or_text:
|
||||
|
|
Загрузка…
Ссылка в новой задаче