pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

W504: Fix positional-only / keyword-only mark being treated as a binary operator

Open Jackenmen opened this issue 3 years ago • 0 comments

Fixes #951

Done by tracking enclosure count when inside a function param list (detected by def keyword) and checking whether the previous token's text is , to be sure that the currently checked token can be evaluated in a param name context.

Jackenmen avatar Sep 11 '22 01:09 Jackenmen