Skip to content

Commit 632e895

Browse files
committed
Add max dimensions to the Capabilities typing dict
I don't know how to make this depend on API version so for now it's just there always.
1 parent d9f43f4 commit 632e895

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

array_api_strict/_typing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ class SupportsDLPack(Protocol):
5454
def __dlpack__(self, /, *, stream: None = ...) -> PyCapsule: ...
5555

5656
Capabilities = TypedDict(
57-
"Capabilities", {"boolean indexing": bool, "data-dependent shapes": bool}
57+
"Capabilities", {"boolean indexing": bool, "data-dependent shapes": bool,
58+
"max dimensions": int}
5859
)
5960

6061
DefaultDataTypes = TypedDict(

0 commit comments

Comments
 (0)