Skip to content

Commit

Permalink
fix: add no cover comment
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Sep 14, 2024
1 parent 127ee7c commit 24e611b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/timeout_executor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion src/timeout_executor/serde.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})


Expand Down
4 changes: 2 additions & 2 deletions src/timeout_executor/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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})

Expand Down

0 comments on commit 24e611b

Please sign in to comment.