non-ascii-name / C2401¶

Message emitted:

%s name "%s" contains a non-ASCII character, consider renaming it.


Used when the name contains at least one non-ASCII unicode character. See for a background why this could be bad. If your programming guideline defines that you are programming in English, then there should be no need for non ASCII characters in Python Names. If not you can simply disable this check.

Problematic code:

√°pple_count = 4444  # [non-ascii-name]

Correct code:

apple_count = 4444

Created by the nonascii-checker checker.