named-expr-without-context / W0131#
Named expression used without context
Emitted if named expression is used to do a regular assignment outside a context like if, for, while, or a comprehension.
(a := 42) # [named-expr-without-context]
if a := 42: print("Success")
Created by the basic checker.