Skip to content

Conversation

julianz-
Copy link
Contributor

@julianz- julianz- commented Sep 28, 2025

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-
Copy link
Contributor Author

julianz- commented Sep 28, 2025

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
Member

Add a change note?

Copy link

codecov bot commented Sep 30, 2025

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
@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.
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
@webknjaz webknjaz merged commit ab1479b into cherrypy:main Oct 13, 2025
70 of 76 checks passed
@webknjaz
Copy link
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants