Shadowing built-in names
Reports shadowing built-in names, such as len
or list
.
Example:
def len(a, b, c):
d = a + b + c
return d
In this code fragment, the len
built-in name is used. The IDE offers to apply the Rename refactoring as a fix.
Inspection options
Option | Type | Default |
---|---|---|
Ignored built-ins | StringList | [] |
Inspection Details | |
---|---|
Available in: | DataSpell 2023.3, PyCharm 2023.3 |
Plugin: | Python Community Edition, 233.SNAPSHOT |
Last modified: 13 July 2023