You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirmed this happens in magic-value, but I don't know if there are other errors that this can apply to.
Maybe it should use repr instead of str for representing values?
This also happens with other characters:
'\r': '. (magic-value-comparison) R2004: Consider using a named constant or an enum instead of '
Any color code (for example '\033[92m'): Everything after instead of ' is colored green
Configuration
[MAIN]load-plugins=pylint.extensions.magic_value
Command used
pylint a.py
Pylint output
R2004: Consider using a named constant or an enum instead of ''. (magic-value-comparison)
Expected behavior
R2004: Consider using a named constant or an enum instead of '\n'. (magic-value-comparison)
Bug description
I confirmed this happens in
magic-value
, but I don't know if there are other errors that this can apply to.Maybe it should use
repr
instead ofstr
for representing values?This also happens with other characters:
'\r'
:'. (magic-value-comparison) R2004: Consider using a named constant or an enum instead of '
'\033[92m'
): Everything afterinstead of '
is colored greenConfiguration
Command used
Pylint output
Expected behavior
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: