PY3.W0105

Pointless string statement

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.

Noncompliant Code:

Copy
$ cat >> system.py <<EOF
"""Module docstring."""

"system"
EOF

Compliant Code:

Copy
$ cat >> system.py <<EOF
"""Module docstring."""

value = "system"
EOF

The content on this page is adapted from the Pylint User Guide, Copyright ©2003-2022, Logilab, PyCQA and contributors. All rights reserved. https://pylint.pycqa.org/en/latest/index.html#, and is used under the Python Software Foundation License Version 2. Examples, recipes, and other code in the Pylint documentation are additionally licensed under the Zero Clause BSD License.