Skip to content

Commit ec26753

Browse files
sentrivanaclaude
andcommitted
ref(celery): Remove duplicate NoOpMgr from utils
NoOpMgr was defined in both celery/__init__.py and celery/utils.py. The utils copy was unused, so remove it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 999667f commit ec26753

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

sentry_sdk/integrations/celery/utils.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from typing import TYPE_CHECKING, cast
33

44
if TYPE_CHECKING:
5-
from typing import Any, Tuple
5+
from typing import Tuple
66
from sentry_sdk._types import MonitorConfigScheduleUnit
77

88

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

3131
return (int(seconds), "second")
32-
33-
34-
class NoOpMgr:
35-
def __enter__(self) -> None:
36-
return None
37-
38-
def __exit__(self, exc_type: "Any", exc_value: "Any", traceback: "Any") -> None:
39-
return None

0 commit comments

Comments
 (0)