8000 Fixed type hint in turn_context.py (#2147) · VictorErmakov/botbuilder-python@1e5102b · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e5102b

Browse files
Fixed type hint in turn_context.py (microsoft#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>
1 parent 31dd569 commit 1e5102b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/botbuilder-core/botbuilder/core/turn_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async def send_activity(
158158
activity_or_text: Union[Activity, str],
159159
speak: str = None,
160160
input_hint: str = None,
161-
) -> ResourceResponse:
161+
) -> Union[ResourceResponse, None]:
162162
"""
163163
Sends a single activity or message to the user.
164164
:param activity_or_text:

0 commit comments

Comments
 (0)
0