diff --git a/src/argh/decorators.py b/src/argh/decorators.py index 8913a95..abb778a 100644 --- a/src/argh/decorators.py +++ b/src/argh/decorators.py @@ -11,7 +11,7 @@ Command decorators ~~~~~~~~~~~~~~~~~~ """ -from typing import Callable, List, Optional +from typing import Callable, List, Optional, Type from argh.constants import ( ATTR_ALIASES, @@ -161,7 +161,7 @@ def wrapper(func: Callable) -> Callable: def wrap_errors( - errors: Optional[List[Exception]] = None, + errors: Optional[List[Type[Exception]]] = None, processor: Optional[Callable] = None, *args, ) -> Callable: