Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kneeyo1 committed Oct 18, 2024
1 parent b3da377 commit 142101c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/sentry/eventstream/kafka/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@

from sentry import options
from sentry.conf.types.kafka_definition import Topic
from sentry.eventstream.base import EventStreamEventType, GroupStates
from sentry.eventstream.base import GroupStates
from sentry.eventstream.snuba import KW_SKIP_SEMANTIC_PARTITIONING, SnubaProtocolEventStream
from sentry.eventstream.types import EventStreamEventType
from sentry.killswitches import killswitch_matches_context
from sentry.utils import json
from sentry.utils.kafka_config import get_kafka_producer_cluster_options, get_topic_definition
Expand Down
5 changes: 4 additions & 1 deletion src/sentry/ingest/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
class ConsumerType:
from enum import Enum


class ConsumerType(Enum):
"""
Defines the types of ingestion consumers
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/sentry/eventstream/test_eventstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
from sentry import nodestore
from sentry.event_manager import EventManager
from sentry.eventstore.models import Event
from sentry.eventstream.base import EventStreamEventType
from sentry.eventstream.kafka.backend import KafkaEventStream
from sentry.eventstream.snuba import SnubaEventStream, SnubaProtocolEventStream
from sentry.eventstream.types import EventStreamEventType
from sentry.receivers import create_default_projects
from sentry.snuba.dataset import Dataset, EntityKey
from sentry.testutils.cases import SnubaTestCase, TestCase
Expand Down

0 comments on commit 142101c

Please sign in to comment.