.. _consider-merging-isinstance:

consider-merging-isinstance / R1701
===================================

**Message emitted:**

Consider merging these isinstance calls to isinstance(%s, (%s))

**Description:**

*Used when multiple consecutive isinstance calls can be merged into one.*

**Problematic code:**

.. literalinclude:: /data/messages/c/consider-merging-isinstance/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/c/consider-merging-isinstance/good.py
   :language: python



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