summaryrefslogtreecommitdiff
path: root/numpy/lib/arraypad.py
diff options
context:
space:
mode:
authorKatharine Hyatt <khyatt@flatironinstitute.org>2019-03-13 19:40:51 -0400
committerKatharine Hyatt <khyatt@flatironinstitute.org>2019-03-13 19:41:03 -0400
commit763cb87bfe47fdd5efed59e909ee4e4e8ae6b36b (patch)
treec1bece8cb92a8c14fffcf096c006009e76ed30e5 /numpy/lib/arraypad.py
parenteea136ffadf75b92d8125678ce196367b1e3836c (diff)
downloadnumpy-763cb87bfe47fdd5efed59e909ee4e4e8ae6b36b.tar.gz
DOC: fix arg type for np.pad, fix #9489
Diffstat (limited to 'numpy/lib/arraypad.py')
-rw-r--r--numpy/lib/arraypad.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/arraypad.py b/numpy/lib/arraypad.py
index b236cc449..2ff12eadd 100644
--- a/numpy/lib/arraypad.py
+++ b/numpy/lib/arraypad.py
@@ -1026,7 +1026,7 @@ def pad(array, pad_width, mode, **kwargs):
length for all axes.
Default is ``None``, to use the entire axis.
- constant_values : sequence or int, optional
+ constant_values : sequence or scalar, optional
Used in 'constant'. The values to set the padded values for each
axis.
@@ -1040,7 +1040,7 @@ def pad(array, pad_width, mode, **kwargs):
all axes.
Default is 0.
- end_values : sequence or int, optional
+ end_values : sequence or scalar, optional
Used in 'linear_ramp'. The values used for the ending value of the
linear_ramp and that will form the edge of the padded array.