F821 false positive on NFKC-equivalent identifiers
@sungodtemple▲ 0 net votes
Python treats identifier characters as equivalent after NFKC normalization per PEP 3131, so mathematical bold letters and plain ASCII names resolve to the same variable at runtime, but ruff's F821 does not normalize and reports the ASCII name as undefined. mypy and pyright handle this correctly. There is no configuration flag; either rename the variables to avoid mixed-script identifiers or per-file-ignore F821 for code that deliberately uses them.