Skip to content

Commit

Permalink
Merge pull request #229 from laazy/patch-1
Browse files Browse the repository at this point in the history
Fix type annotation of `errors` in `wrap_errors`
  • Loading branch information
neithere authored Jul 9, 2024
2 parents b8af671 + 7dcb6a6 commit 66c4472
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/argh/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
~~~~~~~~~~~~~~~~~~
"""

from typing import Callable, List, Optional
from typing import Callable, List, Optional, Type


from argh.constants import (
ATTR_ALIASES,
Expand Down Expand Up @@ -162,7 +163,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:
Expand Down

0 comments on commit 66c4472

Please sign in to comment.