Skip to content

Commit

Permalink
Fixed typing.
Browse files Browse the repository at this point in the history
  • Loading branch information
VovaVili committed Dec 28, 2024
1 parent 38ad567 commit 02434e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions media_only_topic/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def retry[**P, R](
*,
retries: int = 1,
retry_delay: int = 3,
exception_type: type[Exception] | tuple[type[Exception]] = Exception,
exception_type: type[Exception] | tuple[type[Exception], ...] = Exception,
) -> Callable[[Callable[P, R]], Callable[P, R]]: ...


Expand All @@ -44,7 +44,7 @@ def retry[**P, R](
*,
retries: int = 1,
retry_delay: int = 3,
exception_type: type[Exception] | tuple[type[Exception]] = Exception,
exception_type: type[Exception] | tuple[type[Exception], ...] = Exception,
) -> Callable[P, R]: ...


Expand All @@ -54,7 +54,7 @@ def retry[**P, R](
*,
retries: int = 1,
retry_delay: int = 3,
exception_type: type[Exception] | tuple[type[Exception]] = Exception,
exception_type: type[Exception] | tuple[type[Exception], ...] = Exception,
) -> Callable[P, R] | Callable[[Callable[P, R]], Callable[P, R]]:
"""Create a decorator to retry function execution upon failure.
Expand Down

0 comments on commit 02434e5

Please sign in to comment.