Question:
Why does PEP8 raise a warning PEP8: amiguous class definition 'I'
when I try to define a class of name I
? I could not find that there is any build-in I
.
mwe.py:
class I:
pass
Remarks:
class E
I
I
" is far from being a unique search termPyCharm 2019.1.3 (Community Edition)
According to PEP 8: Names to avoid:
Never use the characters 'l' (lowercase letter el), 'O' (uppercase letter oh), or 'I' (uppercase letter eye) as single character variable names.
In some fonts, these characters are indistinguishable from the numerals one and zero. When tempted to use 'l', use 'L' instead.