Skip to content

Fix stubtest failures in type stub files - #774

Merged
webknjaz merged 2 commits into
cherrypy:mainfrom
julianz-:stubtest_fixes
Oct 13, 2025
Merged

webknjaz merged 2 commits into
cherrypy:mainfrom
julianz-:stubtest_fixes

Conversation

@julianz-

@julianz- julianz- commented Sep 28, 2025

Copy link
Copy Markdown
Member

Added missing __all__ declarations to server.pyi and threadpool.pyi to match their corresponding Python modules. Removed cheroot.connections.IS_WINDOWS from stubtest allowlist and added to connections.pyi to fix environment-dependent stubtest failures

These changes resolve stubtest validation errors that were preventing CI from passing due to mismatched public API declarations between stub files and runtime modules.


This change is Reviewable

@julianz-

julianz- commented Sep 28, 2025

Copy link
Copy Markdown
Member Author

The current CI failures are unrelated to the changes in this PR. I will be proposing fixes for the other failures in a separate PR.

@webknjaz

Copy link
Copy Markdown
Member

Add a change note?

@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided A mark meaning that a new change log entry is present within the patch. label Sep 30, 2025
@codecov

codecov Bot commented Sep 30, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.19%. Comparing base (4f040de) to head (7ca72ce).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #774      +/-   ##
==========================================
- Coverage   79.31%   79.19%   -0.12%     
==========================================
  Files          29       29              
  Lines        4197     4197              
  Branches      538      538              
==========================================
- Hits         3329     3324       -5     
- Misses        726      728       +2     
- Partials      142      145       +3     

@julianz-
julianz- force-pushed the stubtest_fixes branch 2 times, most recently from cd2abfd to 7ca72ce Compare October 4, 2025 02:07
Comment thread docs/changelog-fragments.d/774.contrib.rst Outdated
Comment thread docs/spelling_wordlist.txt Outdated
@julianz-
julianz- force-pushed the stubtest_fixes branch 3 times, most recently from 891b9d3 to 1cc32ce Compare October 5, 2025 07:27
Added missing __all__ declarations to server.pyi and threadpool.pyi
to match their corresponding Python modules. Removed
cheroot.connections.IS_WINDOWS from stubtest allowlist and added to
connections.pyi to fix environment-dependent stubtest failures

These changes resolve stubtest validation errors that were preventing
CI from passing due to mismatched public API declarations between
stub files and runtime modules.
Comment thread docs/changelog-fragments.d/774.contrib.rst
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
@webknjaz
webknjaz merged commit ab1479b into cherrypy:main Oct 13, 2025
70 of 76 checks passed
@webknjaz

Copy link
Copy Markdown
Member

@julianz- I've also moved the stubtest integration into the pre-commit config fully. Had to pin the runtime to Python 3.12, though since Python 3.13+ causes a lot of errors I don't currently know how to handle.

@julianz-
julianz- deleted the stubtest_fixes branch December 6, 2025 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided A mark meaning that a new change log entry is present within the patch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants