.. _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.*


**Correct code:**

.. literalinclude:: /data/messages/i/isinstance-second-argument-not-valid-type/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 `typecheck <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/typecheck.py>`__ checker.