Skip to content

[bug?] B018 useless-expression does not work #3453

@smackesey

Description

@smackesey

None of the following trigger B018 useless-expression for me, when I would expect them all to:

"foo" + "bar"  # should trigger B018

"foo"  # should trigger B018

object().__class__  # should trigger B018

I might be missing something about what this rule is supposed to do though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions