Skip to content

BUG(array-api): type namespace predicate mapping - #141

Merged
mj-will merged 1 commit into
mainfrom
fix/namespace-predicate-typing
Oct 27, 2026
Merged

mj-will merged 1 commit into
mainfrom
fix/namespace-predicate-typing

Conversation

@mj-will

@mj-will mj-will commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

With array-api-compat 1.16.0, mypy infers the mixed namespace predicate mapping as containing object values and rejects calls in determine_backend_name with "object" not callable. Explicitly annotate the mapping as boolean-returning callables. This changes typing only; runtime backend detection is unchanged.

@mj-will mj-will added the typing label Oct 27, 2026
@mj-will
mj-will merged commit 90af59d into main Oct 27, 2026
9 of 10 checks passed
@mj-will
mj-will deleted the fix/namespace-predicate-typing branch October 27, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant