.. _undefined-all-variable:

undefined-all-variable / E0603
==============================

**Message emitted:**

Undefined variable name %r in __all__

**Description:**

*Used when an undefined variable name is referenced in __all__.*

**Problematic code:**

.. literalinclude:: /data/messages/u/undefined-all-variable/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/u/undefined-all-variable/good.py
   :language: python


**Related links:**

- `Importing * From a Package <https://docs.python.org/3/tutorial/modules.html#importing-from-a-package>`_

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