How do I tell PyLint “it’s a variable, not a constant” to stop message C0103?

# pylint: disable-msg=C0103

Put it in the scope where you want these warnings to be ignored. You can also make the above an end-of-line comment, to disable the message only for that line of code.

IIRC it is true that pylint interprets all module-level variables as being ‘constants’.

newer versions of pylint will take this line instead

# pylint: disable=C0103

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)