fix typing error

This commit is contained in:
Rohan-Salwan 2021-10-19 08:43:03 +05:30
parent d42b80634f
commit 53e4fe84d7

View file

@ -646,7 +646,9 @@ class Scaffold:
return f return f
@setupmethod @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. """Register a function to handle errors by code or exception class.
A decorator that is used to register a function given an A decorator that is used to register a function given an