.. _inconsistent-quotes:

inconsistent-quotes / W1405
===========================

**Message emitted:**

``Quote delimiter %s is inconsistent with the rest of the file``

**Description:**

*Quote delimiters are not used consistently throughout a module (with allowances made for avoiding unnecessary escaping).*

**Problematic code:**

.. literalinclude:: /data/messages/i/inconsistent-quotes/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/i/inconsistent-quotes/good.py
   :language: python

**Configuration file:**

.. literalinclude:: /data/messages/i/inconsistent-quotes/pylintrc
    :language: ini




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