.. _unsupported-assignment-operation:

unsupported-assignment-operation / E1137
========================================

**Message emitted:**

%r does not support item assignment

**Description:**

*Emitted when an object does not support item assignment (i.e. doesn't define __setitem__ method).*


**Correct code:**

.. literalinclude:: /data/messages/u/unsupported-assignment-operation/good.py
   :language: python

**Additional details:**

You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !


Created by the `typecheck <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/typecheck.py>`__ checker.