Skip to content

Update docstub and add plugin for new dtype-union form - #8033

Merged
lagru merged 27 commits into
scikit-image:mainfrom
mkcor:docstub-fixes-9
Nov 9, 2026
Merged

lagru merged 27 commits into
scikit-image:mainfrom
mkcor:docstub-fixes-9

Conversation

@mkcor

@mkcor mkcor commented Jan 22, 2026 •

Copy link
Copy Markdown
Member

Description

Follows #8028.

  • Fixes a few docstub errors.
  • Points docstub at _skimage2 instead of skimage2, because the latter is just an empty wrapper.
  • Bumps docstub to v0.7.0rc1
  • Adds a docstub plugin to override the dtype-union form as requested. We decided in the meeting that we want to use
    ndarray of shape (M, N) and dtype in {uint8, uint16} over ndarray of shape (M, N) and dtype (uint8 or uint16).

The form change introduce a few new errors. I'd like to address them in a follow-up PR instead of here.

Checklist

Release note

For maintainers and optionally contributors, please refer to the instructions on how to document this PR for the release notes.

...

@mkcor mkcor added 🔧 type: Maintenance Refactoring and maintenance of internals 🧩 typing Type annotations, type checking, and stubs labels Jan 22, 2026
@mkcor
mkcor requested a review from lagru January 22, 2026 14:49
@coderabbitai

This comment was marked as outdated.

@coderabbitai coderabbitai Bot added the 📄 type: Documentation Updates, fixes and additions to documentation label Jan 22, 2026
@coderabbitai

This comment was marked as off-topic.

coderabbitai Bot added a commit that referenced this pull request Jan 22, 2026
Docstrings generation was requested by @lagru.

* #8033 (comment)

The following files were modified:

* `src/skimage/filters/rank/_percentile.py`
* `src/skimage/filters/rank/bilateral.py`
@stefanv stefanv removed the 📄 type: Documentation Updates, fixes and additions to documentation label Jan 22, 2026
@stefanv stefanv changed the title Fix 2-D array docstub error (9). Fix 2-D array docstub error (9) Jan 22, 2026
matthew-brett and others added 10 commits May 21, 2026 16:34
* origin/main: (254 commits)
  Refactor, document migration utilities (scikit-image#8184)
  ci: improve handling of pr labels (scikit-image#8169)
  Doctest migration in PRs & on all platforms (scikit-image#8141)
  Update SKIP 4 (import hierarchy, backporting, testing) (scikit-image#8097)
  One page per function / class in HTML docs for skimage2 (scikit-image#8154)
  Pin minimum pytest to 9 (scikit-image#8174)
  docs: make source install instructions more discoverable and add build requirements to top level requirements file (scikit-image#8165)
  Drop `--maxfail=5` from local pytest config (scikit-image#8170)
  Use standard C99 static inline instead of `__inline` (scikit-image#8159)
  Fix structural_similarity win_size / gaussian_weights conflict (scikit-image#8162)
  Unwrap seed refactor (scikit-image#8142)
  ci: Remove llvm build and add ccache support on windows (scikit-image#8164)
  Document warn_external in contributing guide (scikit-image#8163)
  CI: Fix emscripten dependencies and clean up wheel test commands (scikit-image#8147)
  Test only changed subpackages (scikit-image#8103)
  Fix nightlies: update deprecated scipy call, fix underdetermined test
  Fix minkowski distanced invocation for SciPy >= 1.18 (scikit-image#8157)
  Port `structural_similarly` to ski2 (scikit-image#8104)
  make spin build requirement a lower bound (scikit-image#8158)
  Drop Python 3.11 Support (scikit-image#8153)
  ...
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Cursor reviewed by MB.
From Stefanv's patch to main
Fixes scikit-image#3831.

Mask any NaNs in the image.

This is a more general fix than in
scikit-image#7176.

```release-note
`unwrap_phase` now handles input images with NaN values, by taking the NaN values to be an implicit mask.  Previously,
the NaN values could cause the code to hang.   Closes scikit-image#3831.
```

---------

Co-authored-by: Lars Grüter <[email protected]>
…ometric' into pre-megamove-integration

* matthew-brett/rephrase-coordinate-in_geometric:
  Attempt rewrite of docstring for clarity.
  Apply suggestions from code review
  Rewrite geometric docstring
  Apply suggestions from code review
  Apply suggestions from code review
  Use and extend Stéfan's rewrite of rotation note
  Remove punctuation at end of single-word list items
  Rewrite _geometric docstrings for SK2 xy-ij change
@matthew-brett
matthew-brett changed the base branch from main to pre-megamove-integration June 19, 2026 19:58
@matthew-brett

This comment was marked as outdated.

matthew-brett and others added 3 commits September 3, 2026 19:07
…ge#8308)

Backport of a69547b onto pre-megamove-integration.

Fixes scikit-image#8307. Closes scikit-image#7623.

plotly 7.0.0 dropped support for kaleido 0.2.1, breaking every gallery
example that calls `plotly.io.show(fig)`. kaleido's 1.x rewrite needs
both a plotly>=6.1.1 floor and a headless Chrome install, which each CI
docs job now provides.

- Bumped `kaleido` from `==0.2.1` to `>=1.0`, so gallery examples render
through headless Chrome instead of the deprecated bundled binary.
- Bumped `plotly` from `>=5.20` to `>=6.1.1`, kaleido's own hardcoded
floor for compatibility with 1.x.
- The GitHub Actions docs job installs Chrome through apt: it runs on
arm64, where neither `plotly_get_chrome` nor
`browser-actions/setup-chrome` can provision Chrome (Chrome for Testing
has no Stable-channel linux-arm64 build yet).
- CircleCI's docs job installs Chrome through apt too, since
`plotly_get_chrome`'s console script isn't reliably on PATH there.

Docs CI tests.

<!-- See
https://scikit-image.org/docs/stable/development/contribute.html#documenting-changes
-->

```release-note
...
```

Assisted-by: Cursor <[email protected]>
@mkcor mkcor added this to the 0.27 milestone Oct 19, 2026
@greptile-apps

This comment was marked as outdated.

lagru added 2 commits October 29, 2026 15:39
# Conflicts:
#	src/skimage/data/_fetchers.py
#	src/skimage/filters/rank/_percentile.py
#	src/skimage/filters/rank/bilateral.py
#	src/skimage/restoration/unwrap.py
#	src/skimage/transform/_geometric.py
instead of `skimage2` which is an empty wrapper.
@lagru
lagru changed the base branch from pre-megamove-integration to main October 29, 2026 14:44
@lagru lagru changed the title Fix 2-D array docstub error (9) Fix 2-D array docstub errors and point CI at _skimage2 Oct 29, 2026

@blink1073 blink1073 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread src/_skimage2/filters/rank/bilateral.py Resolved
lagru added 2 commits November 7, 2026 11:31
and update _percentile.py and bilateral.py accordingly (no errors raised
in these files).

This still raises the number of errors that docstub reports. I'd like to
leave that for another PR to fix.
@lagru lagru changed the title Fix 2-D array docstub errors and point CI at _skimage2 Update docstub, its config and add plugin for new dtype-union form Nov 7, 2026
@lagru
lagru requested a review from stefanv November 7, 2026 11:25
@lagru lagru changed the title Update docstub, its config and add plugin for new dtype-union form Update docstub and add plugin for new dtype-union form Nov 7, 2026
@lagru
lagru requested a review from blink1073 November 7, 2026 14:51
@lagru
lagru merged commit 4c83882 into scikit-image:main Nov 9, 2026
35 checks passed
@lagru

lagru commented Nov 9, 2026

Copy link
Copy Markdown
Member

I merged this optimistically since this mostly touches infrastructure and docstrings (in a way we discussed during meetings). But I'm prepared to revert if you find something problematic in view of the pending v0.27.

stefanv pushed a commit that referenced this pull request Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🧩 typing Type annotations, type checking, and stubs 🔧 type: Maintenance Refactoring and maintenance of internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants