Skip to content

Commit 5825c67

Browse files
ben-harackjeffwidman
authored andcommitted
Expose ConsumerRebalanceListener in all
This solves a warning in linters like PyCharm, which warns that a line like: from kafka import ConsumerRebalanceListener is actually accessing a protected member of a class or module. Adding it to __all__ should solve this.
1 parent ba7372e commit 5825c67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ def __init__(self, *args, **kwargs):
5050
'SimpleClient', 'SimpleProducer', 'KeyedProducer',
5151
'RoundRobinPartitioner', 'HashedPartitioner',
5252
'create_message', 'create_gzip_message', 'create_snappy_message',
53-
'SimpleConsumer', 'MultiProcessConsumer',
53+
'SimpleConsumer', 'MultiProcessConsumer', 'ConsumerRebalanceListener',
5454
]

0 commit comments

Comments
 (0)