This is an automated email from the ASF dual-hosted git repository.

piotr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git


The following commit(s) were added to refs/heads/master by this push:
     new d1c9077c fix(python): fix property name of partitions_count in Python 
client (#1808)
d1c9077c is described below

commit d1c9077cdc449b3d06468acfa555588000be75bc
Author: Albin Skott <[email protected]>
AuthorDate: Thu May 29 23:18:32 2025 +0200

    fix(python): fix property name of partitions_count in Python client (#1808)
    
    Rename `topics_count` to `partitions_count` in `TopicDetails`.
    This seems to have been a copy paste error.
    This fixes #1807
---
 foreign/python/iggy_py.pyi  | 2 +-
 foreign/python/src/topic.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/foreign/python/iggy_py.pyi b/foreign/python/iggy_py.pyi
index 9e602694..8b4ce73e 100644
--- a/foreign/python/iggy_py.pyi
+++ b/foreign/python/iggy_py.pyi
@@ -194,7 +194,7 @@ class TopicDetails:
     id: builtins.int
     name: builtins.str
     messages_count: builtins.int
-    topics_count: builtins.int
+    partitions_count: builtins.int
 
 class MessageState(Enum):
     Available = auto()
diff --git a/foreign/python/src/topic.rs b/foreign/python/src/topic.rs
index 2b7ecfe2..6b50aa35 100644
--- a/foreign/python/src/topic.rs
+++ b/foreign/python/src/topic.rs
@@ -53,7 +53,7 @@ impl TopicDetails {
     }
 
     #[getter]
-    pub fn topics_count(&self) -> u32 {
+    pub fn partitions_count(&self) -> u32 {
         self.inner.partitions_count
     }
 }

Reply via email to