-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
RecursionError when linting scripts containing merge_asof from pandas 0.24 #2811
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
Comments
Thanks for the report @grobgl I can reproduce the issue. |
Any luck on solving this issue? I'm having a similar problem |
@jetheurer I haven't been able to find time to work on this issue, but I presume one of the issues is the recursive nature of the rebuilder, which takes Python AST and transforms it to |
This should be fixed with the release of astroid 2.4.2. Can you give it a go and let me know if you can still reproduce the issue? |
I assume you mean pylint 2.4.2? Just tried it, it's still failing for me with
|
Just tried with astroid 2.3.2 as well. Still failing with the same error. This is my environment:
|
Alright, thanks for confirming! I haven't tried with Python 3.7.4, maybe that has something to do with it. |
I am pretty sure that 2.5 reintroduced this as a regression. |
Pylint crashes with a
RecursionError
from astroid when lintingmerge_asof
in version 0.24 of pandas and any recent version of pylint (tested 1.9, 2.0, 2.1, 2.2, 2.3). Note that this is not an issue with older versions of pandas.Steps to reproduce
replication.py
:pylint replication.py
Current behavior
Pylint crashes as follows:
pylint --version output
Latest tested:
The text was updated successfully, but these errors were encountered: