fix typing error
This commit is contained in:
parent
d42b80634f
commit
53e4fe84d7
1 changed files with 3 additions and 1 deletions
|
|
@ -646,7 +646,9 @@ class Scaffold:
|
|||
return f
|
||||
|
||||
@setupmethod
|
||||
def errorhandler(self, code_or_exception: t.Union[T, int]) -> T:
|
||||
def errorhandler(
|
||||
self, code_or_exception: t.Union[t.Type[GenericException], int]
|
||||
) -> T:
|
||||
"""Register a function to handle errors by code or exception class.
|
||||
|
||||
A decorator that is used to register a function given an
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue