8000 Merge pull request #29147 from jorenham/bug/missing-capabilities-key · DWesl/numpy@ce5895e · GitHub
[go: up one dir, main page]

Skip to content

Commit ce5895e

Browse files
authored
Merge pull request numpy#29147 from jorenham/bug/missing-capabilities-key
BUG: Missing array-api ``capabilities()`` key
2 parents 93340d3 + 61512bc commit ce5895e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

numpy/_array_api_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ def capabilities(self):
9494
>>> info = np.__array_namespace_info__()
9595
>>> info.capabilities()
9696
{'boolean indexing': True,
97-
'data-dependent shapes': True}
97+
'data-dependent shapes': True,
98+
'max dimensions': 64}
9899
99100
"""
100101
return {
101102
"boolean indexing": True,
102103
"data-dependent shapes": True,
103-
# 'max rank' will be part of the 2024.12 standard
104-
# "max rank": 64,
104+
"max dimensions": 64,
105105
}
106106

107107
def default_device(self):

0 commit comments

Comments
 (0)
0