diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2018-09-24 11:40:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-24 11:40:11 -0500 |
| commit | 5841358e7331ad4ea11cd6b5b07e3141f60cc048 (patch) | |
| tree | 74e2439cc5ccabdd5db5dc01a0d68c01cfe11cb7 | |
| parent | 409aca108c6d6daf7f4fd0561d440ff4f30a0108 (diff) | |
| parent | affd5a1b49ba9c8ba09ed5fbd8b830436c24430e (diff) | |
| download | numpy-5841358e7331ad4ea11cd6b5b07e3141f60cc048.tar.gz | |
Merge pull request #12027 from YannickJadoul/abstract-scalar-type-docstrings
DOC: Add docstrings for abstract types in scalar type hierarchy
| -rw-r--r-- | numpy/core/_add_newdocs.py | 69 |
1 files changed, 68 insertions, 1 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py index d4b6765d0..1c82cfde4 100644 --- a/numpy/core/_add_newdocs.py +++ b/numpy/core/_add_newdocs.py @@ -7968,7 +7968,74 @@ add_newdoc('numpy.core.numerictypes', 'generic', ('view', ############################################################################## # -# Documentation for other scalar classes +# Documentation for scalar type abstract base classes in type hierarchy +# +############################################################################## + + +add_newdoc('numpy.core.numerictypes', 'number', + """ + Abstract base class of all numeric scalar types. + + """) + +add_newdoc('numpy.core.numerictypes', 'integer', + """ + Abstract base class of all integer scalar types. + + """) + +add_newdoc('numpy.core.numerictypes', 'signedinteger', + """ + Abstract base class of all signed integer scalar types. + + """) + +add_newdoc('numpy.core.numerictypes', 'unsignedinteger', + """ + Abstract base class of all unsigned integer scalar types. + + """) + +add_newdoc('numpy.core.numerictypes', 'inexact', + """ + Abstract base class of all numeric scalar types with a (potentially) + inexact representation of the values in its range, such as + floating-point numbers. + + """) + +add_newdoc('numpy.core.numerictypes', 'floating', + """ + Abstract base class of all floating-point scalar types. + + """) + +add_newdoc('numpy.core.numerictypes', 'complexfloating', + """ + Abstract base class of all complex number scalar types that are made up of + floating-point numbers. + + """) + +add_newdoc('numpy.core.numerictypes', 'flexible', + """ + Abstract base class of all scalar types without predefined length. + The actual size of these types depends on the specific `np.dtype` + instantiation. + + """) + +add_newdoc('numpy.core.numerictypes', 'character', + """ + Abstract base class of all character string scalar types. + + """) + + +############################################################################## +# +# Documentation for concrete scalar classes # ############################################################################## |
