summaryrefslogtreecommitdiff
path: root/python/database.py
diff options
context:
space:
mode:
authorRubens Brandao <git@rubens.io>2024-06-05 10:37:55 -0300
committerJosh F <negasora@users.noreply.github.com>2024-06-24 15:05:28 -0400
commit750c2ffd35c202fb4a16af1f5714fe61fc62153c (patch)
treeeadd7415af35fcf4c556dde15a73b0ad8a966cbf /python/database.py
parent2bc2173e0849226329e0c26d9c049867b06a9886 (diff)
fix return type for python KeyValueStore size functions
Diffstat (limited to 'python/database.py')
-rw-r--r--python/database.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/database.py b/python/database.py
index df1b5b09..1b07435e 100644
--- a/python/database.py
+++ b/python/database.py
@@ -98,22 +98,22 @@ class KeyValueStore:
return core.BNIsKeyValueStoreEmpty(self.handle)
@property
- def value_size(self) -> bool:
+ def value_size(self) -> int:
"""Number of values in the kvs (read-only)"""
return core.BNGetKeyValueStoreValueSize(self.handle)
@property
- def data_size(self) -> bool:
+ def data_size(self) -> int:
"""Length of serialized data (read-only)"""
return core.BNGetKeyValueStoreDataSize(self.handle)
@property
- def value_storage_size(self) -> bool:
+ def value_storage_size(self) -> int:
"""Size of all data in storage (read-only)"""
return core.BNGetKeyValueStoreValueStorageSize(self.handle)
@property
- def namespace_size(self) -> bool:
+ def namespace_size(self) -> int:
"""Number of namespaces pushed with begin_namespace (read-only)"""
return core.BNGetKeyValueStoreNamespaceSize(self.handle)