.. _import-self:

import-self / W0406
===================

**Message emitted:**

Module import itself

**Description:**

*Used when a module is importing itself.*


**Correct code:**

.. literalinclude:: /data/messages/i/import-self/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 `imports <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/imports.py>`__ checker.