expression-not-assigned / W0106#

Message emitted:

Expression "%s" is assigned to nothing

Description:

Used when an expression that is not a function call is assigned to nothing. Probably something else was intended.

Correct code:

are_equal: bool = str(42) == "42"

Problematic code:

str(42) == "42"  # [expression-not-assigned]

Created by the basic checker.