Skip to content

Commit ae56d0b

Browse files
committed
Fix docstub error last in the list
1 parent e9f9652 commit ae56d0b

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

.github/workflows/typing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
run: |
4848
echo -e "## docstub output\n\`\`\`" >> $GITHUB_STEP_SUMMARY
4949
(set -o pipefail && \
50-
docstub run --verbose --group-errors --allow-errors=639 \
50+
docstub run --verbose --group-errors --allow-errors=609 \
5151
--workers -1 --out-dir ${MYPYPATH}/skimage src/skimage/ \
5252
2>&1 | tee -a $GITHUB_STEP_SUMMARY)
5353
echo -e "\`\`\`" >> $GITHUB_STEP_SUMMARY

src/skimage/filters/rank/_percentile.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@ def subtract_mean_percentile(
212212
213213
Parameters
214214
----------
215-
image : 2-D array (uint8, uint16)
215+
image : ndarray of shape (M, N) and dtype (uint8 or uint16)
216216
Input image.
217217
footprint : ndarray of shape (m, n)
218218
The neighborhood expressed as a 2-D array of 1's and 0's.
219-
out : 2-D array, same dtype as input `image`
219+
out : ndarray of shape (M, N), same dtype as input `image`
220220
If None, a new array is allocated.
221221
mask : ndarray
222222
Mask array that defines (>0) area of the image included in the local
@@ -230,7 +230,7 @@ def subtract_mean_percentile(
230230
231231
Returns
232232
-------
233-
out : 2-D array, same dtype as input `image`
233+
out : ndarray of shape (M, N), same dtype as input `image`
234234
Output image.
235235
236236
"""
@@ -261,11 +261,11 @@ def enhance_contrast_percentile(
261261
262262
Parameters
263263
----------
264-
image : 2-D array (uint8, uint16)
264+
image : ndarray of shape (M, N) and dtype (uint8 or uint16)
265265
Input image.
266266
footprint : ndarray of shape (m, n)
267267
The neighborhood expressed as a 2-D array of 1's and 0's.
268-
out : 2-D array, same dtype as input `image`
268+
out : ndarray of shape (M, N), same dtype as input `image`
269269
If None, a new array is allocated.
270270
mask : ndarray
271271
Mask array that defines (>0) area of the image included in the local
@@ -279,7 +279,7 @@ def enhance_contrast_percentile(
279279
280280
Returns
281281
-------
282-
out : 2-D array, same dtype as input `image`
282+
out : ndarray of shape (M, N), same dtype as input `image`
283283
Output image.
284284
285285
"""
@@ -307,11 +307,11 @@ def percentile(image, footprint, out=None, mask=None, shift_x=0, shift_y=0, p0=0
307307
308308
Parameters
309309
----------
310-
image : 2-D array (uint8, uint16)
310+
image : ndarray of shape (M, N) and dtype (uint8 or uint16)
311311
Input image.
312312
footprint : ndarray of shape (m, n)
313313
The neighborhood expressed as a 2-D array of 1's and 0's.
314-
out : 2-D array, same dtype as input `image`
314+
out : ndarray of shape (M, N), same dtype as input `image`
315315
If None, a new array is allocated.
316316
mask : ndarray
317317
Mask array that defines (>0) area of the image included in the local
@@ -324,7 +324,7 @@ def percentile(image, footprint, out=None, mask=None, shift_x=0, shift_y=0, p0=0
324324
325325
Returns
326326
-------
327-
out : 2-D array, same dtype as input `image`
327+
out : ndarray of shape (M, N), same dtype as input `image`
328328
Output image.
329329
330330
"""
@@ -354,11 +354,11 @@ def pop_percentile(
354354
355355
Parameters
356356
----------
357-
image : 2-D array (uint8, uint16)
357+
image : ndarray of shape (M, N) and dtype (uint8 or uint16)
358358
Input image.
359359
footprint : ndarray of shape (m, n)
360360
The neighborhood expressed as a 2-D array of 1's and 0's.
361-
out : 2-D array, same dtype as input `image`
361+
out : ndarray of shape (M, N), same dtype as input `image`
362362
If None, a new array is allocated.
363363
mask : ndarray
364364
Mask array that defines (>0) area of the image included in the local
@@ -372,7 +372,7 @@ def pop_percentile(
372372
373373
Returns
374374
-------
375-
out : 2-D array, same dtype as input `image`
375+
out : ndarray of shape (M, N), same dtype as input `image`
376376
Output image.
377377
378378
"""
@@ -402,11 +402,11 @@ def sum_percentile(
402402
403403
Parameters
404404
----------
405-
image : 2-D array (uint8, uint16)
405+
image : ndarray of shape (M, N) and dtype (uint8 or uint16)
406406
Input image.
407407
footprint : ndarray of shape (m, n)
408408
The neighborhood expressed as a 2-D array of 1's and 0's.
409-
out : 2-D array, same dtype as input `image`
409+
out : ndarray of shape (M, N), same dtype as input `image`
410410
If None, a new array is allocated.
411411
mask : ndarray
412412
Mask array that defines (>0) area of the image included in the local
@@ -420,7 +420,7 @@ def sum_percentile(
420420
421421
Returns
422422
-------
423-
out : 2-D array, same dtype as input `image`
423+
out : ndarray of shape (M, N), same dtype as input `image`
424424
Output image.
425425
426426
"""
@@ -450,11 +450,11 @@ def threshold_percentile(
450450
451451
Parameters
452452
----------
453-
image : 2-D array (uint8, uint16)
453+
image : ndarray of shape (M, N) and dtype (uint8 or uint16)
454454
Input image.
455455
footprint : ndarray of shape (m, n)
456456
The neighborhood expressed as a 2-D array of 1's and 0's.
457-
out : 2-D array, same dtype as input `image`
457+
out : ndarray of shape (M, N), same dtype as input `image`
458458
If None, a new array is allocated.
459459
mask : ndarray
460460
Mask array that defines (>0) area of the image included in the local
@@ -467,7 +467,7 @@ def threshold_percentile(
467467
468468
Returns
469469
-------
470-
out : 2-D array, same dtype as input `image`
470+
out : ndarray of shape (M, N), same dtype as input `image`
471471
Output image.
472472
473473
"""

src/skimage/filters/rank/bilateral.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ def mean_bilateral(
7676
7777
Parameters
7878
----------
79-
image : 2-D array (uint8, uint16)
79+
image : ndarray of shape (M, N) and dtype (uint8 or uint16)
8080
Input image.
81-
footprint : 2-D array
81+
footprint : ndarray of shape (m, n)
8282
The neighborhood expressed as a 2-D array of 1's and 0's.
83-
out : 2-D array, same dtype as input `image`
83+
out : ndarray of shape (M, N), same dtype as input `image`
8484
If None, a new array is allocated.
8585
mask : ndarray
8686
Mask array that defines (>0) area of the image included in the local
@@ -94,7 +94,7 @@ def mean_bilateral(
9494
9595
Returns
9696
-------
97-
out : 2-D array, same dtype as input `image`
97+
out : ndarray of shape (M, N), same dtype as input `image`
9898
Output image.
9999
100100
See also
@@ -138,11 +138,11 @@ def pop_bilateral(
138138
139139
Parameters
140140
----------
141-
image : 2-D array (uint8, uint16)
141+
image : ndarray of shape (M, N) and dtype (uint8 or uint16)
142142
Input image.
143-
footprint : 2-D array
143+
footprint : ndarray of shape (m, n)
144144
The neighborhood expressed as a 2-D array of 1's and 0's.
145-
out : 2-D array, same dtype as input `image`
145+
out : ndarray of shape (M, N), same dtype as input `image`
146146
If None, a new array is allocated.
147147
mask : ndarray
148148
Mask array that defines (>0) area of the image included in the local
@@ -156,7 +156,7 @@ def pop_bilateral(
156156
157157
Returns
158158
-------
159-
out : 2-D array, same dtype as input `image`
159+
out : ndarray of shape (M, N), same dtype as input `image`
160160
Output image.
161161
162162
Examples
@@ -213,11 +213,11 @@ def sum_bilateral(
213213
214214
Parameters
215215
----------
216-
image : 2-D array (uint8, uint16)
216+
image : ndarray of shape (M, N) and dtype (uint8 or uint16)
217217
Input image.
218-
footprint : 2-D array
218+
footprint : ndarray of shape (m, n)
219219
The neighborhood expressed as a 2-D array of 1's and 0's.
220-
out : 2-D array, same dtype as input `image`
220+
out : ndarray of shape (M, N), same dtype as input `image`
221221
If None, a new array is allocated.
222222
mask : ndarray
223223
Mask array that defines (>0) area of the image included in the local
@@ -231,7 +231,7 @@ def sum_bilateral(
231231
232232
Returns
233233
-------
234-
out : 2-D array, same dtype as input `image`
234+
out : ndarray of shape (M, N), same dtype as input `image`
235235
Output image.
236236
237237
See also

0 commit comments

Comments
 (0)