Up to 200x Faster Dot Products & Similarity Metrics — for Python, Rust, C, JS, and Swift, supporting f64, f32, f16 real & complex, i8, and bit vectors using SIMD for both AVX2, AVX-512, NEON, SVE, & SVE2 📐
t.py:6: error: Argument 1 to "cosine" has incompatible type "ndarray[Any, dtype[floating[_32Bit]]]"; expected "memoryview" [arg-type]
t.py:6: error: Argument 2 to "cosine" has incompatible type "ndarray[Any, dtype[floating[_32Bit]]]"; expected "memoryview" [arg-type]
Found 2 errors in 1 file (checked 1 source file)
Expected behavior
No error.
SimSIMD version
5.1.1
Operating System
Ubuntu, Fedora, macOS
Hardware architecture
x86
Which interface are you using?
Python bindings
Contact Details
No response
Are you open to being tagged as a contributor?
[X] I am open to being mentioned in the project .git history as a contributor
Is there an existing issue for this?
[X] I have searched the existing issues
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Describe the bug
With SimSIMD 5.1.1, mypy reject the example from the README. SimSIMD 5.1.0 works fine.
Steps to reproduce
Install numpy, SimSIMD and mypy:
Write to this file (straight from the README):
Run mypy on that file:
Expected behavior
No error.
SimSIMD version
5.1.1
Operating System
Ubuntu, Fedora, macOS
Hardware architecture
x86
Which interface are you using?
Python bindings
Contact Details
No response
Are you open to being tagged as a contributor?
.git
history as a contributorIs there an existing issue for this?
Code of Conduct