diff options
author | Ben Harack <ben.harack@pbc.humandx.org> | 2018-09-20 13:46:05 -0700 |
---|---|---|
committer | Jeff Widman <jeff@jeffwidman.com> | 2018-09-27 14:55:04 -0700 |
commit | 5825c67cf9b90c9e8045fcfc064c562a2888725c (patch) | |
tree | eda9fdf17e786472444db2a9b05d78b7832bea15 | |
parent | ba7372e44ffa1ee49fb4d5efbd67534393e944db (diff) | |
download | kafka-python-5825c67cf9b90c9e8045fcfc064c562a2888725c.tar.gz |
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.
-rw-r--r-- | kafka/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/__init__.py b/kafka/__init__.py index ff364d3..897ebb0 100644 --- a/kafka/__init__.py +++ b/kafka/__init__.py @@ -50,5 +50,5 @@ __all__ = [ 'SimpleClient', 'SimpleProducer', 'KeyedProducer', 'RoundRobinPartitioner', 'HashedPartitioner', 'create_message', 'create_gzip_message', 'create_snappy_message', - 'SimpleConsumer', 'MultiProcessConsumer', + 'SimpleConsumer', 'MultiProcessConsumer', 'ConsumerRebalanceListener', ] |