Browse Source

fix(typing): Update release health types (#71606)

Snigdha Sharma 9 months ago
parent
commit
b5525d2b77
2 changed files with 2 additions and 2 deletions
  1. 0 1
      pyproject.toml
  2. 2 1
      src/sentry/release_health/tasks.py

+ 0 - 1
pyproject.toml

@@ -385,7 +385,6 @@ module = [
     "sentry.plugins.providers.repository",
     "sentry.receivers.releases",
     "sentry.release_health.metrics_sessions_v2",
-    "sentry.release_health.tasks",
     "sentry.replays.endpoints.project_replay_clicks_index",
     "sentry.replays.lib.query",
     "sentry.rules.actions.integrations.base",

+ 2 - 1
src/sentry/release_health/tasks.py

@@ -1,5 +1,6 @@
 import logging
 from collections.abc import Sequence
+from typing import Any
 
 from django.core.exceptions import ValidationError
 from django.db import IntegrityError
@@ -95,7 +96,7 @@ def adopt_releases(org_id: int, totals: Totals) -> Sequence[int]:
                                 environment__organization_id=org_id,
                             )
 
-                            updates = {}
+                            updates: dict[str, Any] = {}
                             if rpe.adopted is None:
                                 updates["adopted"] = timezone.now()