Breaking # pyright: ignore[]
used with # type: ignore[]
comments on short lines
#3399
Labels
F: comments
The syntactic kind. Not in the language grammar, always on our minds. Best bugs.
F: linebreak
How should we split up lines?
T: style
What do we want Blackened code to look like?
Describe the style change
When validating a project with both pyright and mypy, it's possible to independently validate both checkers. (since pyright 1.1.282)
However, both expect their ignore comment to be at the start of the line.
Examples in the current Black style
line-lenght=130
Desired style
Additional context
microsoft/pyright#4243
microsoft/pyright#4259
python/mypy#12358
python/mypy#6948
The text was updated successfully, but these errors were encountered: