Browse Source

ref: mypy --disallow-any-generics for relay metric_extraction (#68028)

I'm planning to add this setting to our "stricter" mypy allowlist --
need to fix it here first though!

<!-- Describe your PR here. -->
anthony sottile 11 months ago
parent
commit
806072cd69
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sentry/relay/config/metric_extraction.py

+ 1 - 1
src/sentry/relay/config/metric_extraction.py

@@ -345,7 +345,7 @@ def _update_state_with_spec_limit(
     under the limit and not have churn.
     """
 
-    widget_queries: dict[int, set] = {}
+    widget_queries: dict[int, set[DashboardWidgetQuery]] = {}
 
     for spec in trimmed_specs:
         spec_hash, _, spec_version = spec