useless-literal-set
$X
is uselessly assigned twice inside the creation of the setuseless-if-conditional
$X
)useless-if-body
is-function-without-parentheses
improper-list-concat
else
clause if the condition $EXPRESSION
is false. If you meant to do list concatenation, put parentheses around the entire concatenation expression, like this: ['a', 'b', 'c'] + (['d'] if x else ['e'])
. If this is the intended behavior, the expression may be confusing to others, and you may wish to add parentheses for readability.useless-inner-function
$FF
is defined inside a function but never usedcode-after-unconditional-return
return-not-in-function
return
only makes sense inside a functionuseless-assignment-keyed
$Y
in $X
is assigned twice; the first assignment is uselessuseless-literal
$X
is uselessly assigned twice