From 23199ce5b01e77cd163e4d69949dd242b9c88f5d Mon Sep 17 00:00:00 2001 From: Haochen Pan Date: Mon, 4 Dec 2023 10:21:47 -0600 Subject: [PATCH] py37 comptability --- diaspora_event_sdk/sdk/kafka_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diaspora_event_sdk/sdk/kafka_client.py b/diaspora_event_sdk/sdk/kafka_client.py index 01e172f..d5f7425 100644 --- a/diaspora_event_sdk/sdk/kafka_client.py +++ b/diaspora_event_sdk/sdk/kafka_client.py @@ -8,8 +8,8 @@ # If kafka-python is not installed, Kafka functionality is not available through diaspora-event-sdk. kafka_available = True try: - from kafka import KafkaProducer as KProd # type: ignore[import-not-found] - from kafka import KafkaConsumer as KCons # type: ignore[import-not-found] + from kafka import KafkaProducer as KProd # type: ignore[import,import-not-found] + from kafka import KafkaConsumer as KCons # type: ignore[import,import-not-found] except ImportError: kafka_available = False