Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Static typing support for the array API standard

License

NotificationsYou must be signed in to change notification settings

data-apis/array-api-typing

Repository files navigation

Type Annotations for the Python array API standard


Warning

This package is in early development and is not yet stable. It is intended as a typing toolkitfor working with thePython array API standard, but itmay change significantly in the future.

Installation

pip install array-api-typing
usinguv
uv add array-api-typing
from source, using pip
pip install git+https://github.com/data-apis/array-api-typing.git
building from source
cd /path/to/parentgit clone https://github.com/data-apis/array-api-typing.gitcd array-api-typingpip install -e.# editable mode

Quick example

>>>import array_api_typingas xpt>>>import numpyas np>>>deffunc(x: xpt.HasArrayNamespace) -> xpt.HasArrayNamespace:...return x>>> func(np.array([1,2,3]))array([1, 2, 3])

About

Static typing support for the array API standard

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Contributors5

Languages


[8]ページ先頭

©2009-2025 Movatter.jp