Skip to content

Plugin triggers False positive unsupported-assignment-operation #2

@jorisvr

Description

@jorisvr

It looks like this plugin triggers false positive errors:

E1137: 'self.my_array' does not support item assignment (unsupported-assignment-operation)

This error occurs when running pylint --load-plugin=pylint_qt on the following code:

import PySide6.QtCore

class MyClass:

    def __init__(self) -> None:
        self.my_array = [1, 2, 3, 4]
        self.my_array[1] = 5

The error only appears when passing --load-plugin=pylint_qt and importing a PySide6 module. This suggests to me that the plugin somehow triggers the error, but I don't yet understand how it happens.

Using Python 3.13.9, packages:

Package            Version
------------------ -------
astroid            4.0.4
colorama           0.4.6
dill               0.4.1
isort              8.0.1
mccabe             0.7.0
pip                25.2
platformdirs       4.9.6
pylint             4.0.5
pylint-qt          0.1.0
PySide6            6.11.0
PySide6_Addons     6.11.0
PySide6_Essentials 6.11.0
shiboken6          6.11.0
tomlkit            0.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions