You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Python serialized_length property raises TypeError due to missing default argument #683
The serialized_length property on the Python Index class raises a TypeError when accessed. The pybind11 binding doesn't expose the default argument for the serialization_config_t parameter, so Python callers cannot use the property without explicitly providing a config object (which isn't possible via the property interface).
TypeError: (): incompatible function arguments. The following argument types are supported:
1. (arg0: usearch.compiled.Index, arg1: unum::usearch::index_dense_serialization_config_t) -> int
Invoked with: <usearch.compiled.Index object at 0x...>
Expected behavior
idx.serialized_length should return an integer representing the serialized length in bytes, using the C++ default config value.
USearch version
v2.21.0
Operating System
Windows 11 (also reproduced on Linux)
Hardware architecture
x86
Which interface are you using?
Python bindings
Searched existing issues
I have searched existing issues and this hasn't been reported.
Activity
ashvardanian commentedon Nov 29, 2025
Thanks, @titusz! The proposal makes sense - feel free to open a PR 🤗
fix(python): wrap serialized_length binding with lambda
fix(python): wrap serialized_length binding with lambda
Fix: Python `serialized_length` missing argument (#714)