Skip to content

Commit

Permalink
Merge branch '3.0.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed May 6, 2024
2 parents 57add38 + eb1182a commit 4f42c64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/flask/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def save_session(
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,
Expand Down
2 changes: 1 addition & 1 deletion src/flask/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def endpoint(self) -> str | None:
reconstruct the same URL or a modified URL.
"""
if self.url_rule is not None:
return self.url_rule.endpoint
return self.url_rule.endpoint # type: ignore[no-any-return]

return None

Expand Down

0 comments on commit 4f42c64

Please sign in to comment.