-
-
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
Crash 'FunctionDef' object has no attribute 'ancestors'
#5646
Comments
pylint-dev#5646 Handle when the 'ancestors' attribute is not present in an object.
pylint-dev#5646 Handle when the 'ancestors' attribute is not present in an object.
A possible fix is here: |
I saw this crash bug with this version of the XBlock repo code: I'm including this specific URL as I'm about to commit some changes which fix the pylint errors causing the crash. |
Reproducible code is:
Assigning myself, probably get to this next week! |
Bug description
When parsing the file here:
https://github.com/openedx/XBlock/blob/59c2f28e32548b8cb78b8f7c733bf64689a9a751/xblock/test/test_core.py
pylint crashed with a
AttributeError
and with the following stacktrace:Configuration
No response
Command used
Pylint output
Expected behavior
All the repo code should pass pylint checks. In fact, if pylint is pinned back to
pylint<2.12
, all the repo code does pass pylint checks.Pylint version
OS / Environment
macOS Catalina, version 10.15.7
Using iTerm2 terminal
Additional dependencies
The text was updated successfully, but these errors were encountered: