Skip to content

Tightens type-checking for Transform#80

Merged
clbarnes merged 1 commit into
clbarnes:mainfrom
Tomaz-Vieira:tighter_typing
Jul 15, 2026
Merged

Tightens type-checking for Transform#80
clbarnes merged 1 commit into
clbarnes:mainfrom
Tomaz-Vieira:tighter_typing

Conversation

@Tomaz-Vieira

Copy link
Copy Markdown
Contributor

Transform was missing a few type arguments that were making pyright unhappy; it was assuming that the return type of Transform.invert was Transform[Unknown].

@clbarnes

Copy link
Copy Markdown
Owner

Thanks! I know there are a bunch of wonky type annotations around conversions between different array types too. To my mind, the whole purpose of the array API should be to provide a Protocol which actually implements it, but that doesn't seem to exist (no progress on https://github.com/data-apis/array-api-typing , and https://pypi.org/project/types-array-api/ gives a lot more red squigglies than I know what to do with...); all array_namespace seems to do is completely erase all the type information.

@clbarnes
clbarnes merged commit 4dd5f52 into clbarnes:main Jul 15, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants