Repository navigation
Skip PyQt6's stubs in mypy - #1190
Merged
Merged
Conversation
PyQt6 6.12.0 ships QtGui.pyi with signatures like `def drawConvexPolygon(self, point, *args, /)`, which is invalid syntax, so mypy aborts with 16 syntax errors and the pre-commit job fails on main and every PR. mypy reaches the stubs because ete4 is followed (follow_untyped_imports) and ete4/treeview/qt.py imports PyQt6. follow_imports = "skip" alone is ignored for .pyi files, hence follow_imports_for_stubs. Drop the override once a PyQt6 release emits `/` before `*args`.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1190 +/- ##
=======================================
Coverage 74.07% 74.07%
=======================================
Files 57 57
Lines 8895 8895
=======================================
Hits 6589 6589
Misses 2306 2306 🚀 New features to boost your workflow:
|
Zethson
added a commit
that referenced
this pull request
Nov 3, 2026
Adds the changelog for 1.5.0 and bumps the release drafter templates. The version itself comes from the git tag via hatch-vcs. The v1.5.0 section gains the guide assignment rework (#1172, #1173), the Mixscape min_cells fix (#1189), the Python 3.13 requirement and the CI and template PRs (#1165, #1184, #1185, #1190), and its two Maintenance blocks are merged in the 1.4.0 section order.
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.
PyQt6 6.12.0 ships
QtGui.pyistubs with*args, /, which is invalid syntax and makes mypy abort, so the pre-commit job fails on main and every open PR.mypy now skips the
PyQt6.*stubs it reaches through ete4.