Skip to content

Fix missing class variables on cdef classes and inconsistent implemen…#2

Merged
mxmlnkn merged 2 commits into
mxmlnkn:masterfrom
BasementCat:fix-classvars-and-rebalance
Nov 17, 2025
Merged

Fix missing class variables on cdef classes and inconsistent implemen…#2
mxmlnkn merged 2 commits into
mxmlnkn:masterfrom
BasementCat:fix-classvars-and-rebalance

Conversation

@BasementCat

Copy link
Copy Markdown
Contributor

Fix missing class variables on cdef classes and inconsistent implementation of rebalance

Comment thread cppbktree/cppbktree.pyx
cdef class _BKTree:
cdef CppBKTree[vector[uint8_t], size_t]* tree
cdef int max_element_count
cdef bool _needs_rebalance

@mxmlnkn mxmlnkn Nov 17, 2025

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary? It worked fine without it. Honest question because I am not too well-versed with Cython.

@BasementCat

BasementCat commented Nov 17, 2025 via email

Copy link
Copy Markdown
Contributor Author

@mxmlnkn mxmlnkn merged commit d511a8f into mxmlnkn:master Nov 17, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants