Skip to content

Find extra syntax in Match subjects #3217

@sobolevn

Description

@sobolevn

Code like:

match [varible]: ...
# or
match (variable,): ...

(the same with other containers)

should raise a new violation, because there's no real reason to wrap values here into new containers.

I suggest adding this violation to refactoring.py, visitor can go to into new wemake_python_styleguide/visitors/ast/pm.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions