Skip to content

Conversation

@Nikita-Gz
Copy link
Contributor

Previous type hint implied that send_activity in turn_context.py will always return ResourceResponse, meanwhile it can also return None

Fixes #2146

Description

The type hint is fixed to include possible None return, otherwise it might make the developers assume that there is no need to check for None.

Specific Changes

  • Changed ResourceResponse to Union[ResourceResponse, None] type hint

Previous type hint implied that send_activity will always return ResourceResponse, meanwhile it can also return None
@Nikita-Gz Nikita-Gz requested a review from a team as a code owner August 2, 2024 08:27
@gandiddi gandiddi requested a review from tracyboehrer August 5, 2024 09:30
@Nikita-Gz
Copy link
Contributor Author

"BotBuilder-Python-CI-PR-yaml" step seems to be waiting for something. Do you know what that step is about @tracyboehrer ? I can't seem to find its definition

@tracyboehrer tracyboehrer merged commit 1e5102b into microsoft:main Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect typehint in turn_context.py

2 participants