compare-to-empty-string / C1901#

Message emitted:

Avoid comparisons to empty string


Used when Pylint detects comparison to an empty string constant.

Correct code:

# This is a placeholder for correct code for this message.

Additional details:

You can help us make the doc better by contributing !


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

Created by the compare-to-empty-string checker.