Bug 2221900 - Pylint doesn't work with the latest Astroid available in rawhide
Summary: Pylint doesn't work with the latest Astroid available in rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pylint
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2220412
TreeView+ depends on / blocked
 
Reported: 2023-07-11 08:05 UTC by Vojtech Trefny
Modified: 2023-07-11 15:38 UTC (History)
4 users (show)

Fixed In Version: pylint-2.17.4-3.fc39
Clone Of:
Environment:
Last Closed: 2023-07-11 15:26:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources pylint pull-request 7 0 None None None 2023-07-11 08:06:57 UTC

Description Vojtech Trefny 2023-07-11 08:05:18 UTC
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pylint/utils/ast_walker.py", line 91, in walk
    callback(astroid)
  File "/usr/lib/python3.12/site-packages/pylint/checkers/typecheck.py", line 2096, in visit_subscript
    self._check_invalid_sequence_index(node)
  File "/usr/lib/python3.12/site-packages/pylint/checkers/typecheck.py", line 1688, in _check_invalid_sequence_index
    if subscript.ctx is astroid.Store:
                        ^^^^^^^^^^^^^
AttributeError: module 'astroid' has no attribute 'Store

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pylint/utils/ast_walker.py", line 91, in walk
    callback(astroid)
  File "/usr/lib/python3.12/site-packages/pylint/checkers/typecheck.py", line 2112, in visit_subscript
    if node.ctx == astroid.Load:
                   ^^^^^^^^^^^^
AttributeError: module 'astroid' has no attribute 'Load'

-----------

These constants were moved in latest Astroid, this Pylint patch needs to be backported to Fedora: https://github.com/pylint-dev/pylint/pull/8611



Reproducible: Always


Note You need to log in before you can comment on or make changes to this bug.