From f6291e655d556ed7e0eecdad456f4e28b01b8d2b Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Mon, 19 Dec 2016 11:26:46 -0800 Subject: Add docstring for max_records (#897) --- kafka/consumer/group.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index 02915b4..9ebf604 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -503,6 +503,9 @@ class KafkaConsumer(six.Iterator): data is not available in the buffer. If 0, returns immediately with any records that are available currently in the buffer, else returns empty. Must not be negative. Default: 0 + max_records (int, optional): The maximum number of records returned + in a single call to :meth:`poll`. Default: Inherit value from + max_poll_records. Returns: dict: topic to list of records since the last fetch for the -- cgit v1.2.1