.. _assignment-from-none:

assignment-from-none / E1128
============================

**Message emitted:**

Assigning result of a function call, where the function returns None

**Description:**

*Used when an assignment is done on a function call but the inferred function returns nothing but None.*

**Problematic code:**

.. literalinclude:: /data/messages/a/assignment-from-none/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/a/assignment-from-none/good.py
   :language: python



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