Skip to content

Commit

Permalink
fix mypy finding with new werkzeug endpoint type
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed May 6, 2024
1 parent f958b65 commit a363642
Showing 1 changed file with 1 addition and 1 deletion.
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 a363642

Please sign in to comment.