Skip to content

Allow deeper recursion in mypy daemon, better error reporting #17707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 17, 2025

Conversation

kcdodd
Copy link
Contributor

@kcdodd kcdodd commented Aug 23, 2024

Fixes #17706

Handles recursion error during parse of too complex expressions, differentiates from internal recursion errors by attempting to unparse the ast. If builtin ast.unparse fails, then the error is ignored. Otherwise, re-raises.

This comment has been minimized.

This comment has been minimized.

Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@kcdodd kcdodd marked this pull request as ready for review August 25, 2024 15:05
Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hauntsaninja hauntsaninja changed the title Initial attempt at fixing issue-17706 Allow deeper recursion in mypy daemon, better error reporting Apr 17, 2025
@hauntsaninja hauntsaninja merged commit df60055 into python:master Apr 17, 2025
19 checks passed
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.

dmypy crashes from RecursionError for some complex expressions (fastparse)
2 participants