def fetchable_partitions(self):
        """Return set of TopicPartitions that should be Fetched."""
        fetchable = set()
        for partition, state in six.iteritems(self.assignment):
            if state.is_fetchable():
                fetchable.add(partition)
        return fetchable
def fetchable_partitions ( self ) : fetchable = set ( ) for partition , state in six . iteritems ( self . assignment ) : if state . is_fetchable ( ) : fetchable . add ( partition ) return fetchable
Return set of TopicPartitions that should be Fetched.