assignment-from-no-return / E1111#

Message emitted:

Assigning result of a function call, where the function has no return


Used when an assignment is done on a function call but the inferred function doesn't return anything.

Correct code:

def add(x, y):
    return x + y

value = add(10, 10)

Problematic code:

def add(x, y):
    print(x + y)

value = add(10, 10)  # [assignment-from-no-return]

Created by the typecheck checker.