Repository navigation
Support Python 3.11–3.15 with current mypy and stubtest - #224
Merged
Merged
Conversation
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Require Python 3.11 or newer and test Python 3.11–3.15 on Linux, macOS, and Windows. Upgrade mypy from 0.930 to 2.4.1 and remove the pytest restriction needed by the old checker.
Address current stubtest's repeated discrepancies within the existing per-module stubs and QFlags generation structure:
Keep coverage boundaries explicit in README and the existing allowlist: unsupported aggregate/tooling modules and four SIP reverse-division slots that return NotImplemented. One exact optional entry handles Python 3.13+ reporting a spurious self parameter for SIP's one-argument dump helper; runtime probes and regression tests verify the real signature. Remove two obsolete allowlist entries. No blanket stubtest suppression is added.
Regression coverage checks subclassability, extension-layout conflicts, enum inference, positional-only arguments, the pointer constructor's keyword, and reflected geometry operations.
Validation:
The updated CI run passed all 15 matrix jobs and the aggregate check.
Follow-up issues for remaining workarounds and coverage gaps: