Back to Intellij Community

PyShadowingNamesInspection

python/python-psi-impl/resources/inspectionDescriptions/PyShadowingNamesInspection.html

2025.3-rc-2184 B
Original Source

Reports shadowing names defined in outer scopes.

Example:

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

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