Skip to content

Commit

Permalink
feat: add types - topic partition and admin cli (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbenbang authored Aug 11, 2023
1 parent ed314a3 commit 4c6846e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions confluent_kafka-stubs/cimpl.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ TIMESTAMP_CREATE_TIME: int
TIMESTAMP_LOG_APPEND_TIME: int
TIMESTAMP_NOT_AVAILABLE: int

class _AdminClientImpl:
pass

class KafkaError:
# Class Private Vars
_ALL_BROKERS_DOWN: int
Expand Down Expand Up @@ -302,3 +305,18 @@ class NewPartitions:
- doc: https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html#newpartitions
"""
...

class TopicPartition:
def __init__(
self,
topic: str,
partition: int = -1,
offset: int = -1001,
metadata: str | None = None,
leader_epoch: int | None = None,
) -> None:
"""
Note:
- doc: https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html#topicpartition
"""
...

0 comments on commit 4c6846e

Please sign in to comment.