Skip to content

Commit c72d0c5

Browse files
ref(crons): Improve typing on MONITOR_CODEC (#69919)
1 parent 8c9047b commit c72d0c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sentry/monitors/consumers/monitor_consumer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from arroyo.types import BrokerValue, Commit, FilteredPayload, Message, Partition
1919
from django.db import router, transaction
2020
from sentry_kafka_schemas import get_codec
21+
from sentry_kafka_schemas.codecs import Codec
2122
from sentry_kafka_schemas.schema_types.ingest_monitors_v1 import IngestMonitorMessage
2223
from sentry_sdk.tracing import Span, Transaction
2324

@@ -57,7 +58,7 @@
5758

5859
logger = logging.getLogger(__name__)
5960

60-
MONITOR_CODEC = get_codec("ingest-monitors")
61+
MONITOR_CODEC: Codec[IngestMonitorMessage] = get_codec("ingest-monitors")
6162

6263
CHECKIN_QUOTA_LIMIT = 6
6364
CHECKIN_QUOTA_WINDOW = 60

0 commit comments

Comments
 (0)