.. _pointless-string-statement:

pointless-string-statement / W0105
==================================

**Message emitted:**

String statement has no effect

**Description:**

*Used when a string is used as a statement (which of course has no effect). This is a particular case of W0104 with its own message so you can easily disable it if you're using those strings as documentation, instead of comments.*

**Problematic code:**

.. literalinclude:: /data/messages/p/pointless-string-statement/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/p/pointless-string-statement/good.py
   :language: python



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