Open
Description
eigh
returns a Tuple[array]
according to the function signature -
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.
Activity
kgryte commentedon Apr 9, 2025
@Saransh-cpp Yes, this does appear to be a bug. Feel free to submit a patch. We'll likely need to backport, as well, to prior revisions.
Saransh-cpp commentedon Apr 9, 2025
Thanks, opening a PR!