.. _missing-final-newline:

missing-final-newline / C0304
=============================

**Message emitted:**

Final newline missing

**Description:**

*Used when the last line in a file is missing a newline.*


**Correct code:**

.. literalinclude:: /data/messages/m/missing-final-newline/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 `format <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/format.py>`__ checker.