.. _missing-function-docstring:

missing-function-docstring / C0116
==================================

**Message emitted:**

Missing function or method docstring

**Description:**

*Used when a function or method has no docstring. Some special methods like __init__ do not require a docstring.*

**Problematic code:**

.. literalinclude:: /data/messages/m/missing-function-docstring/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/m/missing-function-docstring/good.py
   :language: python



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