Pylint: ''' block comment ''' String statement has no effect

Created on 12 Apr 2019  路  4Comments  路  Source: PyCQA/pylint

Steps to reproduce

1.'''block comment'''

Current behavior

closing ''' is highligthed with warning String statement has no effect

Expected behavior

it shouldn't be highlighted

pylint --version output

invalid

Most helpful comment

I believe this needs to be fixed. Please refer the following tweet:

https://twitter.com/gvanrossum/status/112670605505077248

All 4 comments

pylint --version output

Note that this part seems to be missing in your issue

2.3.1
astroid 2.2.5
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]

For block comments use the # instead of quotes, pylint does not accept the latter as a form of documentation other than in docstrings.

I believe this needs to be fixed. Please refer the following tweet:

https://twitter.com/gvanrossum/status/112670605505077248

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pylint-bot picture pylint-bot  路  3Comments

PCManticore picture PCManticore  路  3Comments

GergelyKalmar picture GergelyKalmar  路  3Comments

elirnm picture elirnm  路  3Comments

DGalt picture DGalt  路  3Comments