From 273123f6b8fc0d871553f707e515816777c60e24 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 17:19:27 +0000 Subject: [PATCH 1/2] Bump the python-requirements group across 1 directory with 6 updates Bumps the python-requirements group with 6 updates in the /requirements directory: | Package | From | To | | --- | --- | --- | | [cryptography](https://github.com/pyca/cryptography) | `42.0.5` | `42.0.7` | | [mypy](https://github.com/python/mypy) | `1.9.0` | `1.10.0` | | [pallets-sphinx-themes](https://github.com/pallets/pallets-sphinx-themes) | `2.1.2` | `2.1.3` | | [pyright](https://github.com/RobertCraigie/pyright-python) | `1.1.359` | `1.1.361` | | [pytest](https://github.com/pytest-dev/pytest) | `8.1.1` | `8.2.0` | | [tox](https://github.com/tox-dev/tox) | `4.14.2` | `4.15.0` | Updates `cryptography` from 42.0.5 to 42.0.7 - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/cryptography/compare/42.0.5...42.0.7) Updates `mypy` from 1.9.0 to 1.10.0 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/1.9.0...v1.10.0) Updates `pallets-sphinx-themes` from 2.1.2 to 2.1.3 - [Release notes](https://github.com/pallets/pallets-sphinx-themes/releases) - [Changelog](https://github.com/pallets/pallets-sphinx-themes/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/pallets-sphinx-themes/compare/2.1.2...2.1.3) Updates `pyright` from 1.1.359 to 1.1.361 - [Release notes](https://github.com/RobertCraigie/pyright-python/releases) - [Commits](https://github.com/RobertCraigie/pyright-python/compare/v1.1.359...v1.1.361) Updates `pytest` from 8.1.1 to 8.2.0 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.1.1...8.2.0) Updates `tox` from 4.14.2 to 4.15.0 - [Release notes](https://github.com/tox-dev/tox/releases) - [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst) - [Commits](https://github.com/tox-dev/tox/compare/4.14.2...4.15.0) --- updated-dependencies: - dependency-name: cryptography dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-requirements - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-requirements - dependency-name: pallets-sphinx-themes dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-requirements - dependency-name: pyright dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-requirements - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-requirements - dependency-name: tox dependency-type: direct:development update-type: version-update:semver-minor dependency-group: python-requirements ... Signed-off-by: dependabot[bot] --- requirements/dev.txt | 14 +++++++------- requirements/docs.txt | 2 +- requirements/tests.txt | 4 ++-- requirements/typing.txt | 10 +++++----- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index 61bb5ab0..d0c9ec2d 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -36,7 +36,7 @@ charset-normalizer==3.3.2 # requests colorama==0.4.6 # via tox -cryptography==42.0.5 +cryptography==42.0.7 # via -r typing.txt distlib==0.3.8 # via virtualenv @@ -72,7 +72,7 @@ markupsafe==2.1.5 # via # -r docs.txt # jinja2 -mypy==1.9.0 +mypy==1.10.0 # via -r typing.txt mypy-extensions==1.0.0 # via @@ -93,13 +93,13 @@ packaging==24.0 # pytest # sphinx # tox -pallets-sphinx-themes==2.1.2 +pallets-sphinx-themes==2.1.3 # via -r docs.txt platformdirs==4.2.0 # via # tox # virtualenv -pluggy==1.4.0 +pluggy==1.5.0 # via # -r tests.txt # -r typing.txt @@ -118,9 +118,9 @@ pygments==2.17.2 # sphinx-tabs pyproject-api==1.6.1 # via tox -pyright==1.1.359 +pyright==1.1.361 # via -r typing.txt -pytest==8.1.1 +pytest==8.2.0 # via # -r tests.txt # -r typing.txt @@ -172,7 +172,7 @@ sphinxcontrib-serializinghtml==1.1.10 # via # -r docs.txt # sphinx -tox==4.14.2 +tox==4.15.0 # via -r dev.in types-contextvars==2.4.7.3 # via -r typing.txt diff --git a/requirements/docs.txt b/requirements/docs.txt index 84bf1d8f..fe7501f1 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -28,7 +28,7 @@ packaging==24.0 # via # pallets-sphinx-themes # sphinx -pallets-sphinx-themes==2.1.2 +pallets-sphinx-themes==2.1.3 # via -r docs.in pygments==2.17.2 # via diff --git a/requirements/tests.txt b/requirements/tests.txt index 2146b275..f4aa9035 100644 --- a/requirements/tests.txt +++ b/requirements/tests.txt @@ -10,9 +10,9 @@ iniconfig==2.0.0 # via pytest packaging==24.0 # via pytest -pluggy==1.4.0 +pluggy==1.5.0 # via pytest -pytest==8.1.1 +pytest==8.2.0 # via -r tests.in python-dotenv==1.0.1 # via -r tests.in diff --git a/requirements/typing.txt b/requirements/typing.txt index 79ee47b7..02969e4d 100644 --- a/requirements/typing.txt +++ b/requirements/typing.txt @@ -8,11 +8,11 @@ asgiref==3.8.1 # via -r typing.in cffi==1.16.0 # via cryptography -cryptography==42.0.5 +cryptography==42.0.7 # via -r typing.in iniconfig==2.0.0 # via pytest -mypy==1.9.0 +mypy==1.10.0 # via -r typing.in mypy-extensions==1.0.0 # via mypy @@ -20,13 +20,13 @@ nodeenv==1.8.0 # via pyright packaging==24.0 # via pytest -pluggy==1.4.0 +pluggy==1.5.0 # via pytest pycparser==2.22 # via cffi -pyright==1.1.359 +pyright==1.1.361 # via -r typing.in -pytest==8.1.1 +pytest==8.2.0 # via -r typing.in python-dotenv==1.0.1 # via -r typing.in From 860a25c390eba8e6c089a818b02800dd9d789864 Mon Sep 17 00:00:00 2001 From: David Lord Date: Mon, 6 May 2024 10:23:10 -0700 Subject: [PATCH 2/2] fix mypy finding --- src/flask/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flask/helpers.py b/src/flask/helpers.py index 359a842a..00abe046 100644 --- a/src/flask/helpers.py +++ b/src/flask/helpers.py @@ -91,7 +91,7 @@ def stream_with_context( gen = generator_or_function(*args, **kwargs) # type: ignore[operator] return stream_with_context(gen) - return update_wrapper(decorator, generator_or_function) # type: ignore[arg-type] + return update_wrapper(decorator, generator_or_function) # type: ignore[arg-type, return-value] def generator() -> t.Iterator[t.AnyStr | None]: ctx = _cv_request.get(None)