relax errorhandler function arg type

This commit is contained in:
David Lord 2022-03-15 07:35:59 -07:00
parent 0ef1e65f6a
commit 8886328822
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
5 changed files with 19 additions and 27 deletions

View file

@ -574,9 +574,7 @@ class Blueprint(Scaffold):
handler is used for all requests, even if outside of the blueprint.
"""
def decorator(
f: "ErrorHandlerCallable[Exception]",
) -> "ErrorHandlerCallable[Exception]":
def decorator(f: "ErrorHandlerCallable") -> "ErrorHandlerCallable":
self.record_once(lambda s: s.app.errorhandler(code)(f))
return f