Skip to content

Commit

Permalink
Bump the python-packages group with 6 updates (#2743)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <[email protected]>
  • Loading branch information
dependabot[bot] and Kludex authored Nov 18, 2024
1 parent 1a8efba commit 530cbf6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
# Testing
coverage==7.6.1
importlib-metadata==8.5.0
mypy==1.11.2
ruff==0.6.8
mypy==1.13.0
ruff==0.7.2
typing_extensions==4.12.2
types-contextvars==2.4.7.3
types-PyYAML==6.0.12.20240917
types-dataclasses==0.6.6
pytest==8.3.3
trio==0.26.2
trio==0.27.0

# Documentation
mkdocs==1.6.1
mkdocs-material==9.5.39
mkdocs-material==9.5.43
mkautodoc==0.2.0

# Packaging
build==1.2.2
build==1.2.2.post1
twine==5.1.1
6 changes: 2 additions & 4 deletions starlette/concurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ async def run(func: typing.Callable[[], typing.Coroutine]) -> None: # type: ign


async def run_in_threadpool(func: typing.Callable[P, T], *args: P.args, **kwargs: P.kwargs) -> T:
if kwargs: # pragma: no cover
# run_sync doesn't accept 'kwargs', so bind them in here
func = functools.partial(func, **kwargs)
return await anyio.to_thread.run_sync(func, *args)
func = functools.partial(func, *args, **kwargs)
return await anyio.to_thread.run_sync(func)


class _StopIteration(Exception):
Expand Down

0 comments on commit 530cbf6

Please sign in to comment.