.. _bad-indentation:

bad-indentation / W0311
=======================

**Message emitted:**

Bad indentation. Found %s %s, expected %s

**Description:**

*Used when an unexpected number of indentation's tabulations or spaces has been found.*

**Problematic code:**

.. literalinclude:: /data/messages/b/bad-indentation/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/b/bad-indentation/good.py
   :language: python

**Additional details:**

The option ``--indent-string`` can be used to set the indentation unit for this check.


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