Skip to content

Commit

Permalink
False positive Z309 for keys closes #528 (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
SizovIgor authored and sobolevn committed Mar 29, 2019
1 parent a6a30b0 commit df14668
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
We follow Semantic Versions since the `0.1.0` release.
We used to have incremental versioning before `0.1.0`.

## 0.9.0

### Features

- Forbid to use multiline conditions

### Bugfixes

- Fixes problem with missing _allowed_left_nodes

## 0.8.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
('first_name + second_name', 1),
('error.code', 'errors[index].code'),
(1, 2),
('returned_item["id"]', 'office.id'),
])
def test_comparison_variables(
assert_errors,
Expand Down
1 change: 1 addition & 0 deletions wemake_python_styleguide/visitors/ast/comparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class WrongComparisionOrderVisitor(BaseNodeVisitor):
ast.Name,
ast.Call,
ast.Attribute,
ast.Subscript,
)

_special_cases: ClassVar[AnyNodes] = (
Expand Down

0 comments on commit df14668

Please sign in to comment.