From 02434e54cc8648677a178fda9820129a4c7168df Mon Sep 17 00:00:00 2001 From: VovaVili Date: Sat, 28 Dec 2024 17:16:19 +0100 Subject: [PATCH] Fixed typing. --- media_only_topic/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/media_only_topic/utils.py b/media_only_topic/utils.py index 506f466..5401741 100644 --- a/media_only_topic/utils.py +++ b/media_only_topic/utils.py @@ -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]]: ... @@ -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]: ... @@ -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.