Page MenuHomeSolus

Update python-astroid to 2.4.2

Authored by algent on Aug 31 2020, 8:12 PM.




  • FunctionDef.is_generator properly handles yield nodes in While tests
  • Properly construct the arguments of infered property descriptors
  • Handle the case where the raw builder fails to retrieve the __all__ attribute
  • Restructure the AST parsing heuristic to always pick the same module
  • Changed to work with distlib
  • Do not crash with SyntaxError when parsing namedtuples with invalid label
  • Protect against infer_call_result failing with InferenceError in Super.getattr()

Depends on D9551

Signed-off-by: Algent Albrahimi <>

Test Plan
  • Succesfully update and run pylint.
  • Run e few scripts using thonny.

Diff Detail

R3709 python-astroid
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

algent created this revision.Aug 31 2020, 8:12 PM
algent requested review of this revision.Aug 31 2020, 8:12 PM
JoshStrobl accepted this revision.Sep 1 2020, 6:46 AM
JoshStrobl added a subscriber: JoshStrobl.

LGTM, thanks!

This revision is now accepted and ready to land.Sep 1 2020, 6:46 AM
algent edited the summary of this revision. (Show Details)Sep 1 2020, 7:08 AM
This revision was automatically updated to reflect the committed changes.