We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0303c6 commit 8b300c3Copy full SHA for 8b300c3
1 file changed
README.md
@@ -60,7 +60,17 @@ import array_api_compat
60
xp = array_api_compat.array_namespace(x)
61
```
62
63
-### Types
+### Array Type
64
+
65
+```python
66
+from array_api._2024_12 import Array
67
68
69
+def my_function[TArray: Array](x: TArray) -> TArray:
70
+ return x + 1
71
+```
72
73
+### Namespace Type
74
75
You can test if an object matches the Protocol by:
76
0 commit comments