fix mypy finding with new werkzeug endpoint type

This commit is contained in:
David Lord 2024-05-06 10:09:58 -07:00
parent f958b6500b
commit a363642a32
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -71,7 +71,7 @@ class Request(RequestBase):
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