.. _unused-import: unused-import / W0611 ===================== **Message emitted:** ``Unused %s`` **Description:** *Used when an imported module or variable is not used.* **Problematic code:** .. literalinclude:: /data/messages/u/unused-import/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/u/unused-import/good.py :language: python **Additional details:** By default, this check is skipped for ``__init__.py`` files, as they often contain imports from submodules for the convenience of end users. While these imports are not used within ``__init__.py``, they serve the purpose of providing intuitive import paths for the module's important classes and constants. **Related links:** - :ref:`--init-import ` Created by the `variables `__ checker.