Skip to content

Commit

Permalink
ref: reuse type definition for Job from event_manager (#72706)
Browse files Browse the repository at this point in the history
split out from my attempt to make Job a TypedDict

<!-- Describe your PR here. -->
  • Loading branch information
asottile-sentry committed Jun 13, 2024
1 parent 18a540d commit 44434ee
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/sentry/grouping/ingest/hashing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import copy
import logging
from collections.abc import MutableMapping, Sequence
from typing import TYPE_CHECKING, Any
from collections.abc import Sequence
from typing import TYPE_CHECKING

import sentry_sdk

Expand Down Expand Up @@ -35,12 +35,11 @@
from sentry.utils.tag_normalization import normalized_sdk_tag_from_event

if TYPE_CHECKING:
from sentry.event_manager import Job
from sentry.eventstore.models import Event

logger = logging.getLogger("sentry.events.grouping")

Job = MutableMapping[str, Any]


def _calculate_event_grouping(
project: Project, event: Event, grouping_config: GroupingConfig
Expand Down

0 comments on commit 44434ee

Please sign in to comment.