consider-using-assignment-expr / R6103#
Use '%s' instead
Emitted when an if assignment is directly followed by an if statement and both can be combined by using an assignment expression ``:=``. Requires Python 3.8 and ``py-version >= 3.8``.
apples = 2 if apples: # [consider-using-assignment-expr] print("God apples!")
if apples := 2: print("God apples!")
This message is emitted by the optional 'code_style' checker which requires the
plugin to be loaded.
Created by the code_style checker.