.. _assignment-from-no-return:

assignment-from-no-return / E1111
=================================

**Message emitted:**

Assigning result of a function call, where the function has no return

**Description:**

*Used when an assignment is done on a function call but the inferred function doesn't return anything.*

**Problematic code:**

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

**Correct code:**

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



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