Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
nazywam committed Mar 25, 2024
1 parent 79b6edb commit c1dc026
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions karton/core/karton.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys
import time
import traceback
from typing import Any, Callable, Dict, List, Optional, Tuple, cast
from typing import Any, Callable, Dict, List, Optional, Tuple, Union, cast

from .__version__ import __version__
from .backend import KartonBackend, KartonBind, KartonMetrics
Expand Down Expand Up @@ -290,7 +290,9 @@ def _run_pre_hooks(self) -> None:
else:
self.log.exception("Pre-hook failed")

def _run_post_hooks(self, exception: Optional[Exception]) -> None:
def _run_post_hooks(
self, exception: Optional[Union[Exception, BaseException]]
) -> None:
"""
Run registered postprocessing hooks
Expand Down

0 comments on commit c1dc026

Please sign in to comment.