diff options
author | Michael Seifert <michaelseifert04@yahoo.de> | 2017-09-06 12:10:15 +0200 |
---|---|---|
committer | Michael Seifert <michaelseifert04@yahoo.de> | 2017-09-06 19:44:36 +0200 |
commit | 51eb2bb7be8ef40ead60448bca6a5384efc95697 (patch) | |
tree | 26a2c870ac33afac36f4ddd496050a582565b2b0 /numpy/add_newdocs.py | |
parent | cb4d8026f0cf5e25a61ecb1deb644656ed3bc3be (diff) | |
download | numpy-51eb2bb7be8ef40ead60448bca6a5384efc95697.tar.gz |
BUG: Fix usage of keyword "from" as argument name for "can_cast".
Also removed inconsistency between the second argument name
between documentation ("totype") and code ("to").
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r-- | numpy/add_newdocs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index 687204fc1..477a3db34 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -1589,7 +1589,7 @@ add_newdoc('numpy.core.multiarray', 'lexsort', add_newdoc('numpy.core.multiarray', 'can_cast', """ - can_cast(from, totype, casting = 'safe') + can_cast(from_, to, casting='safe') Returns True if cast between data types can occur according to the casting rule. If from is a scalar or array scalar, also returns @@ -1598,9 +1598,9 @@ add_newdoc('numpy.core.multiarray', 'can_cast', Parameters ---------- - from : dtype, dtype specifier, scalar, or array + from_ : dtype, dtype specifier, scalar, or array Data type, scalar, or array to cast from. - totype : dtype or dtype specifier + to : dtype or dtype specifier Data type to cast to. casting : {'no', 'equiv', 'safe', 'same_kind', 'unsafe'}, optional Controls what kind of data casting may occur. |