Skip to content

Fix type for run_coroutine_threadsafe #13498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 14, 2025

Conversation

mikeshardmind
Copy link
Contributor

The prior typing here is too permissive, this is strictly checked against these two types at runtime. Attempting to pass a task or future, each of which are FutureLike to this API results in a runtime error.

This comment has been minimized.

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@AlexWaygood AlexWaygood changed the title run_coroutine_threadsafe type fix Fix type for run_coroutine_threadsafe Feb 14, 2025
@AlexWaygood AlexWaygood merged commit cc8ca93 into python:main Feb 14, 2025
55 checks passed
Xiddoc pushed a commit to Xiddoc/typeshed that referenced this pull request Feb 16, 2025
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.

2 participants