empty-comment / R2044#

Message emitted:

Line with empty comment

Description:

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

Correct code:

# comment

x = 0  # comment

Problematic code:

# +1:[empty-comment]
#

# +1:[empty-comment]
x = 0  #

Note

This message is emitted by the optional 'empty-comment' checker which requires the pylint.extensions.empty_comment plugin to be loaded.

Created by the empty-comment checker.