Browse Source

ref: fix type ignore in sentry.analytics.events.rule_snooze (#67686)

<!-- Describe your PR here. -->
anthony sottile 11 months ago
parent
commit
2eb978ea61
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/sentry/analytics/events/rule_snooze.py

+ 2 - 2
src/sentry/analytics/events/rule_snooze.py

@@ -2,7 +2,7 @@ from sentry import analytics
 
 
 class RuleSnoozeAction(analytics.Event):
-    attributes = (
+    attributes: tuple[analytics.Attribute, ...] = (
         analytics.Attribute("user_id"),
         analytics.Attribute("organization_id"),
         analytics.Attribute("project_id"),
@@ -15,7 +15,7 @@ class RuleSnoozeAction(analytics.Event):
 
 class RuleSnoozed(RuleSnoozeAction):
     type = "rule.snoozed"
-    attributes = RuleSnoozeAction.attributes + (analytics.Attribute("until", required=False),)  # type: ignore[assignment]
+    attributes = (*RuleSnoozeAction.attributes, analytics.Attribute("until", required=False))
 
 
 class RuleUnSnoozed(RuleSnoozeAction):