Skip to content

Commit af76073

Browse files
committed
📝 Add Array API specification link to HasArrayNamespace and Array protocols
1 parent ba92f90 commit af76073

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/array_api_typing/_array.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
class HasArrayNamespace(Protocol[NamespaceT_co]):
1515
"""Protocol for classes that have an `__array_namespace__` method.
1616
17+
See the Array API specification: https://data-apis.org/array-api/latest/
18+
1719
This `Protocol` is intended for use in static typing to ensure that an
1820
object has an `__array_namespace__` method that returns a namespace for
1921
array operations. This `Protocol` should not be used at runtime for type
@@ -76,6 +78,8 @@ class Array(
7678
):
7779
"""Array API specification for array object attributes and methods.
7880
81+
See the Array API specification: https://data-apis.org/array-api/latest/
82+
7983
The type is: ``Array[+DTypeT, +NamespaceT = ModuleType] = Array[DTypeT,
8084
NamespaceT]`` where:
8185

0 commit comments

Comments
 (0)