.. _too-many-locals:

too-many-locals / R0914
=======================

**Message emitted:**

Too many local variables (%s/%s)

**Description:**

*Used when a function or method has too many local variables.*


**Correct code:**

.. literalinclude:: /data/messages/t/too-many-locals/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 `design <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/design_analysis.py>`__ checker.