forked from orbit-oss/flask
relax errorhandler function arg type
This commit is contained in:
parent
0ef1e65f6a
commit
8886328822
5 changed files with 19 additions and 27 deletions
|
|
@ -1265,9 +1265,7 @@ class Flask(Scaffold):
|
|||
self.shell_context_processors.append(f)
|
||||
return f
|
||||
|
||||
def _find_error_handler(
|
||||
self, e: Exception
|
||||
) -> t.Optional["ErrorHandlerCallable[Exception]"]:
|
||||
def _find_error_handler(self, e: Exception) -> t.Optional["ErrorHandlerCallable"]:
|
||||
"""Return a registered error handler for an exception in this order:
|
||||
blueprint handler for a specific code, app handler for a specific code,
|
||||
blueprint handler for an exception class, app handler for an exception
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue