Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kafka/consumer/subscription_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def is_fetchable(self):
return not self.paused and self.has_valid_position


class ConsumerRebalanceListener(object, metaclass=abc.ABCMeta):
class ConsumerRebalanceListener(metaclass=abc.ABCMeta):
"""
A callback interface that the user can implement to trigger custom actions
when the set of partitions assigned to the consumer changes.
Expand Down
2 changes: 1 addition & 1 deletion kafka/coordinator/assignors/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
)


class AbstractPartitionAssignor:
class AbstractPartitionAssignor(metaclass=abc.ABCMeta):
"""
Abstract assignor implementation which does some common grunt work (in particular collecting
partition counts which are always needed in assignors).
Expand Down
2 changes: 1 addition & 1 deletion kafka/coordinator/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class UnjoinedGroupException(Errors.KafkaError):
retriable = True


class BaseCoordinator:
class BaseCoordinator(metaclass=abc.ABCMeta):
"""
BaseCoordinator implements group management for a single group member
by interacting with a designated Kafka broker (the coordinator). Group
Expand Down
2 changes: 1 addition & 1 deletion kafka/metrics/measurable.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import abc


class AbstractMeasurable:
class AbstractMeasurable(metaclass=abc.ABCMeta):
"""A measurable quantity that can be registered as a metric"""
@abc.abstractmethod
def measure(self, config, now):
Expand Down
Loading