Skip to content

Upgrade ty to 0.0.49 and fix src type-check errors#70

Merged
charlesbmi merged 6 commits into
mainfrom
chore/bump-ty-fix
Jun 17, 2026
Merged

Upgrade ty to 0.0.49 and fix src type-check errors#70
charlesbmi merged 6 commits into
mainfrom
chore/bump-ty-fix

Conversation

@charlesbmi

Copy link
Copy Markdown
Collaborator

Summary

  • Upgrade ty from 0.0.1a14 to 0.0.49 and resolve all ty check src diagnostics
  • Align the custom Array Protocol with Array API positional-only method signatures (/), add astype and __setitem__, and extend _ArrayNamespace with ascontiguousarray
  • Replace invalid isinstance(..., Num[Array, ...]) checks in kernel.py with Protocol + dtype-kind validation; cast at the nanobind boundary
  • Fix geometry.py return typing (types.ModuleType instead of type[math])
  • Add CUDA compute capability 6.1 to build targets

Test plan

  • ty check src passes locally
  • CI make check passes
  • Existing pytest suite passes

Made with Cursor

charlesbmi and others added 3 commits June 15, 2026 17:05
Extend CMAKE_CUDA_ARCHITECTURES and runtime CC check to support Pascal GPUs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

charlesbmi and others added 3 commits June 16, 2026 17:04
array_api_strict arrays lack .astype (uses namespace xp.astype instead),
which broke runtime isinstance/beartype checks in tests. Move astype to
_ArrayNamespace per the Array API spec and cast at the kernel boundary.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace cast(Any, arr).astype(...) with namespace-level xp.astype per
the Array API spec, using the _ArrayNamespace Protocol we already declare.

Co-authored-by: Cursor <cursoragent@cursor.com>
@charlesbmi charlesbmi merged commit 8e1aa15 into main Jun 17, 2026
9 checks passed
@charlesbmi charlesbmi deleted the chore/bump-ty-fix branch June 17, 2026 00:50
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.

1 participant