Skip to content

TopicPartitionInfo

Source code in docs_src/capo_kafka/types/topic_partition_info.py
class TopicPartitionInfo(TypedDict, closed=True):
    partition: NotRequired["capo_kafka.types.__integer.__integer"]
    """<p>The partition ID.</p>"""
    leader: NotRequired["capo_kafka.types.__integer.__integer"]
    """<p>The leader broker ID for the partition.</p>"""
    replicas: NotRequired["capo_kafka.types.__list_of__integer.__listOf__integer"]
    """<p>The list of replica broker IDs for the partition.</p>"""
    isr: NotRequired["capo_kafka.types.__list_of__integer.__listOf__integer"]
    """<p>The list of in-sync replica broker IDs for the partition.</p>"""

isr instance-attribute

isr: NotRequired[__listOf__integer]

The list of in-sync replica broker IDs for the partition.

leader instance-attribute

leader: NotRequired[__integer]

The leader broker ID for the partition.

partition instance-attribute

partition: NotRequired[__integer]

The partition ID.

replicas instance-attribute

replicas: NotRequired[__listOf__integer]

The list of replica broker IDs for the partition.