From b145c68eca56cae27b1c128bd8e386cf7f4710d2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:36:19 +0000 Subject: [PATCH 1/2] Bump the python-requirements group in /requirements with 1 update Bumps the python-requirements group in /requirements with 1 update: [mypy](https://github.com/python/mypy). - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.6.1...v1.7.0) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-requirements ... Signed-off-by: dependabot[bot] --- requirements/dev.txt | 2 +- requirements/typing.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index e7428e41c..ebd4aba35 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -52,7 +52,7 @@ jinja2==3.1.2 # via sphinx markupsafe==2.1.3 # via jinja2 -mypy==1.6.1 +mypy==1.7.0 # via -r typing.in mypy-extensions==1.0.0 # via mypy diff --git a/requirements/typing.txt b/requirements/typing.txt index cb8f567d2..446122950 100644 --- a/requirements/typing.txt +++ b/requirements/typing.txt @@ -4,7 +4,7 @@ # # pip-compile typing.in # -mypy==1.6.1 +mypy==1.7.0 # via -r typing.in mypy-extensions==1.0.0 # via mypy From af893ea8adccf3a0bffd1793a9448b6389ffdd2e Mon Sep 17 00:00:00 2001 From: David Lord Date: Fri, 10 Nov 2023 07:42:07 -0800 Subject: [PATCH 2/2] fix mypy findings --- src/werkzeug/datastructures/auth.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/werkzeug/datastructures/auth.py b/src/werkzeug/datastructures/auth.py index 494576ded..c742ae560 100644 --- a/src/werkzeug/datastructures/auth.py +++ b/src/werkzeug/datastructures/auth.py @@ -172,7 +172,7 @@ def __init__( token: str | None = None, ): self._type = auth_type.lower() - self._parameters: dict[str, str | None] = CallbackDict( # type: ignore[misc] + self._parameters: dict[str, str | None] = CallbackDict( values, lambda _: self._trigger_on_update() ) self._token = token @@ -201,9 +201,7 @@ def parameters(self) -> dict[str, str | None]: @parameters.setter def parameters(self, value: dict[str, str]) -> None: - self._parameters = CallbackDict( # type: ignore[misc] - value, lambda _: self._trigger_on_update() - ) + self._parameters = CallbackDict(value, lambda _: self._trigger_on_update()) self._trigger_on_update() @property