You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
W504 (line break after binary operator) shows up when the slash that indicates positional-only arguments (PEP 570) is followed by a newline. For example:
I think this is an issue, as the slash isn't a binary operator, and the comma seems like a workaround for arguments on a single line than good practice (at least in this case).
The text was updated successfully, but these errors were encountered:
asottile
changed the title
W504 on PEP570 slash
W504: positional only argument at end of long line
Jul 14, 2020
$ cat t.py def really_long_name_for_a_function( very_long_argument_1, very_long_argument_2, *): pass
$ ~/opt/venv/bin/pycodestyle t.py --select=W503,W504t.py:2:49: W504 line break after binary operator
asottile
changed the title
W504: positional only argument at end of long line
W504: positional only / keyword only argument marker at end of long line
Jul 14, 2020
Configuraton:
W504 (line break after binary operator) shows up when the slash that indicates positional-only arguments (PEP 570) is followed by a newline. For example:
pycodestyle thinks that the slash is a binary operator. I can, however, silence it using a comma after the slash, as follows:
I think this is an issue, as the slash isn't a binary operator, and the comma seems like a workaround for arguments on a single line than good practice (at least in this case).
The text was updated successfully, but these errors were encountered: