c:\Git\project\bug5.py
c:\Git\project\bug5.py:1:29 - error: Pyright comment directive must be followed by "=" and a value of true, false, error, warning, information, or none
c:\Git\project\bug5.py:2:1 - error: Expression value is unused (reportUnusedExpression)
c:\Git\project\bug5.py:2:2 - error: Set entry must be hashable
Type "slice" is not hashable (reportUnhashable)
3 errors, 0 warnings, 0 informations
While again, this does:
# pyright: reportUnhashable=false
{slice(0)}
c:\Git\project\bug5.py:2:1 - error: Expression value is unused (reportUnusedExpression)
1 error, 0 warnings, 0 informations
Describe the bug In per-file comments, adding a trailing comment breaks the comment. This is not true for per-line comments.
Code or Screenshots This works:
This does not:
While again, this does:
VS Code extension or command-line
pyright 1.1.384