On 16/11/2017 19:03, Chris Barker wrote:
On Tue, Nov 14, 2017 at 6:14 PM, Steven D'Aprano <email@example.com mailto:firstname.lastname@example.org> wrote:
> and then, even if you wanted to put it on the previous line, you would't > have the line-length issue: > > # flake8: disable=unused-import mypy: alias=pathlib2.Path coverage: > ignore=when>py2.7 And the irony is that this shows exactly why it is still a problem. Code gets emailed, and lines get wrapped, breaking the too-long line.
that wrapped a 85 char line (probably to 72) -- lots of folks have set their line length limit to 90+ these days, so I"m not sure we'll evr be safe...
but whatever -- multiple line pragmas are fine, too -- I'm hoping putting this much crap in your code will be rare :-)
Christopher Barker, Ph.D. Oceanographer
Obviously the best way to avoid multiple warning suppressions to to fix what is being warned about, unfortunately it is not always possible.