-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionbugSomething isn't workingSomething isn't working
Description
Describe the bug
Basically the same bug as reported in CPython (python/cpython#110259) exists in Pyright's lexer as well.
Code or Screenshots
f"""__{
a:d
}__"""Running pyright on the above code gives:
$ pyright ~/playground/ruff/fstring.py
/Users/dhruv/playground/ruff/fstring.py
/Users/dhruv/playground/ruff/fstring.py:3:2 - error: String literal is unterminated
/Users/dhruv/playground/ruff/fstring.py:2:5 - error: "x" is not defined (reportUndefinedVariable)
2 errors, 0 warnings, 0 informations VS Code extension or command-line
Running through the command-line using 1.1.329
Metadata
Metadata
Assignees
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionbugSomething isn't workingSomething isn't working