Skip to content
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

Use ParamSpec for run_in_threadpool #2375

Merged
merged 3 commits into from
Dec 16, 2023
Merged

Conversation

Kludex
Copy link
Sponsor Member

@Kludex Kludex commented Dec 16, 2023

No description provided.

@Kludex Kludex requested a review from a team December 16, 2023 12:17
@@ -24,10 +31,8 @@ async def run(func: typing.Callable[[], typing.Coroutine]) -> None: # type: ign
task_group.start_soon(run, functools.partial(func, **kwargs))


# TODO: We should use `ParamSpec` here, but mypy doesn't support it yet.
# Check https://github.com/python/mypy/issues/12278 for more details.
Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

This was solved some time ago. 🙏

Copy link
Member

@michaeloliverx michaeloliverx left a comment

Choose a reason for hiding this comment

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

Good addition

@Kludex Kludex enabled auto-merge (squash) December 16, 2023 12:49
@Kludex Kludex merged commit 9a213c1 into master Dec 16, 2023
5 checks passed
@Kludex Kludex deleted the proper-annotate-run-in-threadpool branch December 16, 2023 12:51
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