From eb1182a10e757b5e76009c69fdf3a88a5afc6840 Mon Sep 17 00:00:00 2001 From: David Lord Date: Mon, 6 May 2024 10:12:32 -0700 Subject: [PATCH] fix mypy finding --- src/flask/sessions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flask/sessions.py b/src/flask/sessions.py index ee19ad63..05b367a2 100644 --- a/src/flask/sessions.py +++ b/src/flask/sessions.py @@ -365,10 +365,10 @@ class SecureCookieSessionInterface(SessionInterface): return expires = self.get_expiration_time(app, session) - val = self.get_signing_serializer(app).dumps(dict(session)) # type: ignore + val = self.get_signing_serializer(app).dumps(dict(session)) # type: ignore[union-attr] response.set_cookie( name, - val, # type: ignore + val, expires=expires, httponly=httponly, domain=domain,