What it does#
Checks for ambiguous Unicode characters in docstrings.
Why is this bad?#
Some Unicode characters are visually similar to ASCII characters, but have
different code points. For example,
GREEK CAPITAL LETTER ALPHA (
is visually similar, but not identical, to the ASCII character
The use of ambiguous Unicode characters can confuse readers, cause subtle bugs, and even make malicious code look harmless.
In preview, this rule will also flag Unicode characters that are
confusable with other, non-preferred Unicode characters. For example, the
GREEK CAPITAL LETTER OMEGA over
You can omit characters from being flagged as ambiguous via the