chore: pre-commit autoupdate + comment out mypy (broken on Python 3.14 bracketless except)#14497
Closed
chore: pre-commit autoupdate + comment out mypy (broken on Python 3.14 bracketless except)#14497
Conversation
Agent-Logs-Url: https://github.com/TheAlgorithms/Python/sessions/465bf858-594a-4ca3-84b7-915fb68dd949 Co-authored-by: cclauss <3709715+cclauss@users.noreply.github.com>
Agent-Logs-Url: https://github.com/TheAlgorithms/Python/sessions/465bf858-594a-4ca3-84b7-915fb68dd949 Co-authored-by: cclauss <3709715+cclauss@users.noreply.github.com>
… py314) Agent-Logs-Url: https://github.com/TheAlgorithms/Python/sessions/465bf858-594a-4ca3-84b7-915fb68dd949 Co-authored-by: cclauss <3709715+cclauss@users.noreply.github.com>
Agent-Logs-Url: https://github.com/TheAlgorithms/Python/sessions/465bf858-594a-4ca3-84b7-915fb68dd949 Co-authored-by: cclauss <3709715+cclauss@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
cclauss
April 2, 2026 00:22
View session
cclauss
approved these changes
Apr 2, 2026
auto-merge was automatically disabled
April 2, 2026 00:50
Pull request was closed
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.
Describe your change:
pre-commit autoupdatepicked up ruff v0.15.8, which now formatsexcept (E1, E2):→except E1, E2:when targetingpy314(Python 3.14 bracketless except). mypy v1.20.0 treats this valid syntax as a fatal parse error, blocking all type checking.Updates:
v0.14.14→v0.15.8v2.4.1→v2.4.2v2.12.1→v2.21.0v0.24.1→v0.25v1.19.1→v1.20.0(commented out — see below)mypy disabled temporarily: mypy v1.20.0 cannot parse
except E1, E2:(py314 syntax), causing a fatal[syntax]error that prevents it from checking any file ruff has touched. Commented out with a TODO until mypy supports it.Checklist: