Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 194927d

Browse files
committed
DOC: Added maximum_sctype to documentation
1 parent 269d985 commit 194927d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

doc/source/reference/routines.dtype.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ Data type routines
1717

1818
Creating data types
1919
-------------------
20-
2120
.. autosummary::
2221
:toctree: generated/
2322

24-
2523
dtype
2624
format_parser
2725

@@ -53,3 +51,4 @@ Miscellaneous
5351
typename
5452
sctype2char
5553
mintypecode
54+
maximum_sctype

numpy/core/numerictypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
'complex32', 'complex64', 'complex128', 'complex160',
141141
'complex192', 'complex256', 'complex512', 'object']
142142

143+
@set_module('numpy')
143144
def maximum_sctype(t):
144145
"""
145146
Return the scalar type of highest precision of the same kind as the input.

numpy/tests/test_public_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def test_numpy_namespace():
4343
'get_include': 'numpy.lib.utils.get_include',
4444
'int_asbuffer': 'numpy.core._multiarray_umath.int_asbuffer',
4545
'mafromtxt': 'numpy.lib.npyio.mafromtxt',
46-
'maximum_sctype': 'numpy.core.numerictypes.maximum_sctype',
4746
'ndfromtxt': 'numpy.lib.npyio.ndfromtxt',
4847
'recfromcsv': 'numpy.lib.npyio.recfromcsv',
4948
'recfromtxt': 'numpy.lib.npyio.recfromtxt',

0 commit comments

Comments
 (0)