-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
F0002 When trying to infer too many items #7898
Comments
We had this problem several time, but I'm not sure that silently failing all the time with an inference error is better for genuinely large recursions or genuinely big calculation. Maybe we should catch the RecursionError or use a timeout, but raise a warning... |
Yeah, sounds good to me. |
I have often voted against catching What doesn't help is that I think the calls to all the decorators that we use in |
This specific example no longer reproduces on pylint 3.0.3. We have other open issues about recursion where we can take up the question of what to do, e.g. #8842.
We want pylint to be used on code that needs help. It won't ever be adopted if it crashes when people try to first use it. The fact that |
Bug description
Pylint throws an F0002 while trying to lint a file with large enough inferences, here's a minimal example:
This can be handled and caught in astroid during inference, rather than reporting it to the user.
Configuration
No response
Command used
Pylint output
Expected behavior
No
F0002
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: