From 24e611b6343af139dd7c497468903f55789fd25e Mon Sep 17 00:00:00 2001 From: phi Date: Sat, 14 Sep 2024 23:10:47 +0900 Subject: [PATCH] fix: add no cover comment --- src/timeout_executor/main.py | 2 +- src/timeout_executor/serde.py | 2 +- src/timeout_executor/types.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/timeout_executor/main.py b/src/timeout_executor/main.py index d59a6f1..7d5c97b 100644 --- a/src/timeout_executor/main.py +++ b/src/timeout_executor/main.py @@ -92,7 +92,7 @@ async def apply_async( ) -> AsyncResult[P, T]: ... async def apply_async( self, func: Callable[P, Any], *args: P.args, **kwargs: P.kwargs - ) -> AsyncResult[P, Any]: + ) -> AsyncResult[P, Any]: # pragma: no cover """run function with deadline. alias of `delay` diff --git a/src/timeout_executor/serde.py b/src/timeout_executor/serde.py index a83af9e..de33b4d 100644 --- a/src/timeout_executor/serde.py +++ b/src/timeout_executor/serde.py @@ -20,7 +20,7 @@ __all__ = ["dumps_error", "loads_error", "serialize_error", "deserialize_error"] _DATACLASS_FROZEN_KWARGS: dict[str, bool] = {"frozen": True} -if sys.version_info >= (3, 10): +if sys.version_info >= (3, 10): # pragma: no cover _DATACLASS_FROZEN_KWARGS.update({"kw_only": True, "slots": True}) diff --git a/src/timeout_executor/types.py b/src/timeout_executor/types.py index 91320c6..51413b1 100644 --- a/src/timeout_executor/types.py +++ b/src/timeout_executor/types.py @@ -10,7 +10,7 @@ from timeout_executor.logging import logger -if sys.version_info < (3, 11): +if sys.version_info < (3, 11): # pragma: no cover from exceptiongroup import ExceptionGroup if TYPE_CHECKING: @@ -29,7 +29,7 @@ _DATACLASS_FROZEN_KWARGS: dict[str, bool] = {"frozen": True} _DATACLASS_NON_FROZEN_KWARGS: dict[str, bool] = {} -if sys.version_info >= (3, 10): +if sys.version_info >= (3, 10): # pragma: no cover _DATACLASS_FROZEN_KWARGS.update({"kw_only": True, "slots": True}) _DATACLASS_NON_FROZEN_KWARGS.update({"kw_only": True, "slots": True})