.. _shadowed-import:

shadowed-import / W0416
=======================

**Message emitted:**

Shadowed %r (imported line %s)

**Description:**

*Used when a module is aliased with a name that shadows another import.*

**Problematic code:**

.. literalinclude:: /data/messages/s/shadowed-import/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/s/shadowed-import/good.py
   :language: python



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