Skip to content

Commit c266a39

Browse files
committed
Fix easy docstub errors
1 parent b9c7800 commit c266a39

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
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=951 \
50+
docstub run --verbose --group-errors --allow-errors=947 \
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/_median.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def median(
3535
Default is 0.0.
3636
3737
.. versionadded:: 0.15
38-
`cval` was added in 0.15 is used when ``behavior='ndimage'``.
38+
`cval` was added in 0.15 and is used when ``behavior='ndimage'``.
3939
behavior : {'ndimage', 'rank'}, optional
40-
Either to use the old (i.e., scikit-image < 0.15) or the new behavior.
40+
Whether to use the old (i.e., scikit-image < 0.15) or the new behavior.
4141
The old behavior will call :func:`skimage.filters.rank.median`.
4242
The new behavior will call :func:`scipy.ndimage.median_filter`.
4343
Default is 'ndimage'.

src/skimage/measure/pnpoly.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def points_in_poly(points, verts):
4848
4949
Parameters
5050
----------
51-
points : (K, 2) array
51+
points : array_like of shape (K, 2)
5252
Input points, ``(x, y)``.
53-
verts : (L, 2) array
53+
verts : array_like of shape (L, 2)
5454
Vertices of the polygon, sorted either clockwise or anti-clockwise.
5555
The first point may (but does not need to be) duplicated.
5656
@@ -60,7 +60,7 @@ def points_in_poly(points, verts):
6060
6161
Returns
6262
-------
63-
mask : (K,) array of bool
63+
mask : ndarray of shape (K,) and dtype bool
6464
True if corresponding point is inside the polygon.
6565
6666
"""

0 commit comments

Comments
 (0)