Inspectopedia Help

Shadowing names from outer scopes

Reports shadowing names defined in outer scopes.


def outer(p): def inner(p): pass

As a quick-fix, the IDE offers to remove a parameter or rename it.

Inspection Details

Available in:

DataSpell 2023.3, PyCharm 2023.3


Python Community Edition, 233.SNAPSHOT

Last modified: 13 July 2023