Wrong return type for linalg.eigh
in function signature
#922
Labels
bug
Something isn't working.
topic: Linear Algebra
Linear algebra.
topic: Static Typing
Static typing.
Milestone
eigh
returns aTuple[array]
according to the function signature -array-api/src/array_api_stubs/_2024_12/linalg.py
Line 166 in 0941b21
but it actually returns a
NamedTuple
(hence,Tuple[array, array]
) -array-api/src/array_api_stubs/_2024_12/linalg.py
Lines 198 to 204 in 0941b21
which causes problems with type checkers.
Is this intentional or is it a bug? I'd be happy to submit a quick patch to fix the function signature.
The text was updated successfully, but these errors were encountered: