Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions sentry_sdk/integrations/celery/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import TYPE_CHECKING, cast

if TYPE_CHECKING:
from typing import Any, Tuple
from typing import Tuple
from sentry_sdk._types import MonitorConfigScheduleUnit


Expand All @@ -29,11 +29,3 @@ def _get_humanized_interval(seconds: float) -> "Tuple[int, MonitorConfigSchedule
return (interval, cast("MonitorConfigScheduleUnit", unit))

return (int(seconds), "second")


class NoOpMgr:
def __enter__(self) -> None:
return None

def __exit__(self, exc_type: "Any", exc_value: "Any", traceback: "Any") -> None:
return None
Loading