Skip to content

Skip PyQt6's stubs in mypy - #1190

Merged
Zethson merged 1 commit into
mainfrom
mypy-skip-pyqt6-stubs
Nov 2, 2026
Merged

Zethson merged 1 commit into
mainfrom
mypy-skip-pyqt6-stubs

Conversation

@Zethson

@Zethson Zethson commented Nov 2, 2026

Copy link
Copy Markdown
Member

PyQt6 6.12.0 ships QtGui.pyi stubs 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.

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`.
@Zethson
Zethson merged commit e4f0802 into main Nov 2, 2026
21 of 22 checks passed
@Zethson
Zethson deleted the mypy-skip-pyqt6-stubs branch November 2, 2026 10:28
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.07%. Comparing base (9b5c53b) to head (427d321).
⚠️ Report is 1 commits behind head on main.

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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants