Skip to content

Commit

Permalink
fix mypy findings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Nov 10, 2023
1 parent b145c68 commit af893ea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/werkzeug/datastructures/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit af893ea

Please sign in to comment.