.. _isinstance-second-argument-not-valid-type:

isinstance-second-argument-not-valid-type / W1116
=================================================

**Message emitted:**

Second argument of isinstance is not a type

**Description:**

*Emitted when the second argument of an isinstance call is not a type.*

**Problematic code:**

.. literalinclude:: /data/messages/i/isinstance-second-argument-not-valid-type/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/i/isinstance-second-argument-not-valid-type/good.py
   :language: python



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