.. _non-str-assignment-to-dunder-name:

non-str-assignment-to-dunder-name / W1115
=========================================

**Message emitted:**

Non-string value assigned to __name__

**Description:**

*Emitted when a non-string value is assigned to __name__*

**Problematic code:**

.. literalinclude:: /data/messages/n/non-str-assignment-to-dunder-name/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/n/non-str-assignment-to-dunder-name/good.py
   :language: python



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