.. _empty-comment:

empty-comment / R2044
=====================

**Message emitted:**

Line with empty comment

**Description:**

*Used when a # symbol appears on a line not followed by an actual comment*

**Problematic code:**

.. literalinclude:: /data/messages/e/empty-comment/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/e/empty-comment/good.py
   :language: python




.. note::
  This message is emitted by the optional :ref:`'empty-comment'<pylint.extensions.empty_comment>`
   checker which requires the ``pylint.extensions.empty_comment`` plugin to be loaded.

Created by the `empty-comment <https://github.com/PyCQA/pylint/blob/main/pylint/extensions/empty_comment.py>`__ checker.