Inspectopedia Help

Assigning function calls that don't return anything

Reports cases when an assignment is done on a function that does not return anything.

This inspection is similar to pylint inspection E1111.


def just_print(): print("Hello!") action = just_print()

As a quick-fix, the IDE offers to remove the assignment.

Inspection Details

Available in:

DataSpell 2023.3, PyCharm 2023.3


Python Community Edition, 233.SNAPSHOT

Last modified: 13 July 2023