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
pylint runtime error (StopIteration) due to _inference_tip_cached KeyError #2937
Comments
I'm getting a similar error on one of my machines: `Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): This only started this morning. I've tried upgrading
|
Thank you for reporting this issue, I can reproduce the bug. |
Slightly simpler reproducing example: def find_int():
return int(([1] if True else [1])[0])
def foo():
return find_int()
return find_int()
x = foo()
assert True |
Thanks for the report @matti-cujo This is fixed now in astroid's master. |
@PCManticore when will a new astroid release be published containing this fix? |
Hopefully this month @danihodovic |
Steps to reproduce
Run
pylint
on a file containing the following (I called itasdf.py
but I doubt it matters):(This is obviously a heavily reduced case based on the actual code...)
Current behavior
Expected behavior
All the lints, but no exception.
pylint --version output
Reproduces on the latest
pylint
andastroid
:Originally spotted on the current release versions:
The text was updated successfully, but these errors were encountered: