Wemake-python-styleguide: Add `NamedExpr` template to name testing

Created on 28 Feb 2020  路  4Comments  路  Source: wemake-services/wemake-python-styleguide

We should test that NamedExpr follows all the same rules that other ways to assign values.

We should modify tests/test_visitors/test_ast/test_naming/conftest.py to add a new template there. I think, that it should be enough. All other tests will work from there.

Here's what this template should look like:

if {0} := other_call(): 
    ...

We should only add this template for python3.8+

Related #1137

feature good first issue help wanted starter pr-merged

Most helpful comment

Sure! Thank you!

All 4 comments

Hello, can I take this issue?

Sure! Thank you!

And one more case: lambda {0}, /: ...

On it

Was this page helpful?
0 / 5 - 0 ratings