-
Notifications
You must be signed in to change notification settings - Fork 4
Remove unused vector to/from native conversion functions #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
robsdedude
merged 1 commit into
6.x
from
clean-up/remove-vector-native-conversion-functions
Nov 7, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Remove now unused helper functions for converting `Vector` values to/from native Python `lists`<ISSUES_LIST>. | ||
| For more details, see [neo4j-python-driver#1263](https://github.com/neo4j/neo4j-python-driver/pull/1263). |
Submodule driver
updated
22 files
| +0 −2 | .dockerignore | |
| +3 −3 | .pre-commit-config.yaml | |
| +0 −1 | bin/make-unasync | |
| +2 −5 | pyproject.toml | |
| +2 −2 | src/neo4j/_async/driver.py | |
| +18 −11 | src/neo4j/_codec/hydration/v1/temporal.py | |
| +2 −2 | src/neo4j/_sync/driver.py | |
| +2 −0 | src/neo4j/_typing.py | |
| +141 −369 | src/neo4j/vector.py | |
| +81 −27 | testkit/Dockerfile | |
| +1 −0 | testkit/_common.py | |
| +2 −1 | testkit/backend.py | |
| +13 −1 | testkit/build.py | |
| +4 −4 | testkitbackend/_async/requests.py | |
| +4 −4 | testkitbackend/_sync/requests.py | |
| +18 −0 | testkitbackend/exceptions.py | |
| +1 −1 | testkitbackend/test_config.json | |
| +46 −0 | testkitbackend/test_config.py | |
| +59 −0 | testkitbackend/time_warp_compat.py | |
| +2 −2 | tests/integration/test_readme.py | |
| +0 −1 | tests/unit/common/test_api.py | |
| +246 −182 | tests/unit/common/vector/test_vector.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could add the bad length and size to the message here?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could do. But this is really just a second line of defense. The driver code calling this already preforms this check.
Import here: https://github.com/neo4j/neo4j-python-driver/blob/d10d2cd689340d9f2acfe67ca19131936e722f04/src/neo4j/vector.py#L45-L48
Assignment here: https://github.com/neo4j/neo4j-python-driver/blob/d10d2cd689340d9f2acfe67ca19131936e722f04/src/neo4j/vector.py#L618-L623
Check followed by call here: https://github.com/neo4j/neo4j-python-driver/blob/d10d2cd689340d9f2acfe67ca19131936e722f04/src/neo4j/vector.py#L581-L585
So I think it's not worth bothering. I also remove it and let if fall through to the
assert_eq!(src.len() % N, 0);inswap_nresulting in an uglier error message. But again, only when messing up in the driver code would this ever surface. 🤷 I really don't have strong opinion on this.