.. _too-many-public-methods:

too-many-public-methods / R0904
===============================

**Message emitted:**

Too many public methods (%s/%s)

**Description:**

*Used when class has too many public methods, try to reduce this to get a simpler (and so easier to use) class.*


**Correct code:**

.. literalinclude:: /data/messages/t/too-many-public-methods/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.