From f05a39c547d3d34dfa8ea2590a5a4095de5e5310 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:02:13 +0000 Subject: [PATCH 1/2] Bump itsdangerous from 2.1.2 to 2.2.0 Bumps [itsdangerous](https://github.com/pallets/itsdangerous) from 2.1.2 to 2.2.0. - [Release notes](https://github.com/pallets/itsdangerous/releases) - [Changelog](https://github.com/pallets/itsdangerous/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/itsdangerous/compare/2.1.2...2.2.0) --- updated-dependencies: - dependency-name: itsdangerous dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- poetry.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poetry.lock b/poetry.lock index d2ce7fbd40..bb099a205e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1933,13 +1933,13 @@ six = "*" [[package]] name = "itsdangerous" -version = "2.1.2" +version = "2.2.0" description = "Safely pass data to untrusted environments and back." optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "itsdangerous-2.1.2-py3-none-any.whl", hash = "sha256:2c2349112351b88699d8d4b6b075022c0808887cb7ad10069318a8b0bc88db44"}, - {file = "itsdangerous-2.1.2.tar.gz", hash = "sha256:5dbbc68b317e5e42f327f9021763545dc3fc3bfe22e6deb96aaf1fc38874156a"}, + {file = "itsdangerous-2.2.0-py3-none-any.whl", hash = "sha256:c6242fc49e35958c8b15141343aa660db5fc54d4f13a1db01a3f5891b98700ef"}, + {file = "itsdangerous-2.2.0.tar.gz", hash = "sha256:e0050c0b7da1eea53ffaf149c0cfbb5c6e2e2b69c4bef22c81fa6eb73e5f6173"}, ] [[package]] From df61db9f51fa598f87f2545cbf59467920f58ece Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Thu, 18 Apr 2024 14:49:26 -0300 Subject: [PATCH 2/2] Fix type hint --- core/model/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/admin.py b/core/model/admin.py index c286cbf053..68b30532f2 100644 --- a/core/model/admin.py +++ b/core/model/admin.py @@ -230,7 +230,7 @@ def remove_role(self, role, library=None): def generate_reset_password_token(self, secret_key: str) -> str: serializer = URLSafeTimedSerializer(secret_key) - return serializer.dumps(self.email, salt=self.password_hashed) # type: ignore[return-value] + return serializer.dumps(self.email, salt=self.password_hashed) @staticmethod def validate_reset_password_token_and_fetch_admin(