File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
from typing import Literal , Protocol
8
8
from typing_extensions import TypeVar
9
9
10
- T_co = TypeVar ("T_co " , covariant = True , default = ModuleType )
10
+ NS_co = TypeVar ("NS_co " , covariant = True , default = ModuleType )
11
11
12
12
13
- class HasArrayNamespace (Protocol [T_co ]):
13
+ class HasArrayNamespace (Protocol [NS_co ]):
14
14
"""Protocol for classes that have an `__array_namespace__` method.
15
15
16
16
Example:
@@ -30,11 +30,11 @@ class HasArrayNamespace(Protocol[T_co]):
30
30
31
31
def __array_namespace__ (
32
32
self , / , * , api_version : Literal ["2021.12" ] | None = None
33
- ) -> T_co : ...
33
+ ) -> NS_co : ...
34
34
35
35
36
36
class Array (
37
- HasArrayNamespace [T_co ],
37
+ HasArrayNamespace [NS_co ],
38
38
Protocol ,
39
39
):
40
40
"""Array API specification for array object attributes and methods."""
You can’t perform that action at this time.
0 commit comments