8000 DOC: __array_namespace__info__: set_module not __module__ (#30679) · numpy/numpy@90f6cc1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 90f6cc1

Browse files
authored
DOC: __array_namespace__info__: set_module not __module__ (#30679)
1 parent fba740c commit 90f6cc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/_array_api_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
uint32,
2525
uint64,
2626
)
27+
from numpy._utils import set_module
2728

2829

30+
@set_module('numpy')
2931
class __array_namespace_info__:
3032
"""
3133
Get the array API inspection namespace for NumPy.
@@ -58,8 +60,6 @@ class __array_namespace_info__:
5860
5961
"""
6062

61-
__module__ = 'numpy'
62-
6363
def capabilities(self):
6464
"""
6565
Return a dictionary of array API library capabilities.

0 commit comments

Comments
 (0)
0