Skip to content

Commit c0d6273

Browse files
committed
TopicPartition should be importable from top-level module
1 parent 7c779b3 commit c0d6273

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kafka/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def emit(self, record):
2222
from kafka.protocol import (
2323
create_message, create_gzip_message, create_snappy_message)
2424
from kafka.partitioner import RoundRobinPartitioner, HashedPartitioner, Murmur2Partitioner
25+
from kafka.common import TopicPartition
2526

2627
# To be deprecated when KafkaProducer interface is released
2728
from kafka.client import SimpleClient

0 commit comments

Comments
 (0)