Skip to content

Commit 5132c32

Browse files
ref: fix types for sentry.tasks.base (#97510)
<!-- Describe your PR here. -->
1 parent a7e6426 commit 5132c32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ module = [
131131
"sentry.search.events.filter",
132132
"sentry.search.snuba.executors",
133133
"sentry.snuba.metrics.query_builder",
134-
"sentry.tasks.base",
135134
"sentry.testutils.cases",
136135
"sentry.web.frontend.auth_login",
137136
"sentry_plugins.jira.plugin",

src/sentry/tasks/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __call__(self, decorated_task: Any) -> Any:
6464

6565
limited_func = self.create_override(decorated_task)
6666
if hasattr(decorated_task, "name"):
67-
limited_func.name = decorated_task.name
67+
limited_func.name = decorated_task.name # type: ignore[attr-defined]
6868
return limited_func
6969

7070

@@ -234,6 +234,7 @@ def retry(
234234
if func:
235235
return retry()(func)
236236

237+
timeout_exceptions: tuple[type[BaseException], ...]
237238
timeout_exceptions = (ProcessingDeadlineExceeded, SoftTimeLimitExceeded)
238239
if not timeouts:
239240
timeout_exceptions = ()

0 commit comments

Comments
 (0)