Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e190d6c

Browse filesBrowse files
committed
TST: fix NDArray doctest
1 parent d33d3a5 commit e190d6c
Copy full SHA for e190d6c

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎numpy/_typing/_add_docstring.py

Copy file name to clipboardExpand all lines: numpy/_typing/_add_docstring.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def _parse_docstrings() -> str:
120120

121121
add_newdoc('NDArray', repr(NDArray),
122122
"""
123-
A `np.ndarray[tuple[Any, ...], np.dtype[+ScalarType]] <numpy.ndarray>`
123+
A `np.ndarray[tuple[Any, ...], np.dtype[ScalarT]] <numpy.ndarray>`
124124
type alias :term:`generic <generic type>` w.r.t. its
125125
`dtype.type <numpy.dtype.type>`.
126126
@@ -137,10 +137,10 @@ def _parse_docstrings() -> str:
137137
>>> import numpy.typing as npt
138138
139139
>>> print(npt.NDArray)
140-
numpy.ndarray[tuple[Any, ...], numpy.dtype[~_ScalarT]]
140+
numpy.ndarray[tuple[typing.Any, ...], numpy.dtype[~_ScalarT]]
141141
142142
>>> print(npt.NDArray[np.float64])
143-
numpy.ndarray[tuple[Any, ...], numpy.dtype[numpy.float64]]
143+
numpy.ndarray[tuple[typing.Any, ...], numpy.dtype[numpy.float64]]
144144
145145
>>> NDArrayInt = npt.NDArray[np.int_]
146146
>>> a: NDArrayInt = np.arange(10)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.