pycodestyle
pycodestyle copied to clipboard
W504: Fix positional-only / keyword-only mark being treated as a binary operator
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.