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
This is only reproducible on Windows with Pyright 1.1.386, which uses @iarna/toml 3.0.0. The actual Python version is irrelevant, but, as declared, the typecheck environment requires 3.11.
The error can be replicated by passing the text to TOML.parse() manually:
Uncaught:
TomlError: Control characters (codes < 0x1f and 0x7f) are not allowed in comments, use \u000d instead at row 82, col 34, pos 1922:
81: ignore = [
82> "ANN101", # missing-type-self
^
83: "ANN102", # missing-type-cls
at TOMLParser.errorControlCharIn (~\a-n-plus-b\node_modules\@iarna\toml\lib\toml-parser.js:737:25)
at TOMLParser.parseComment (~\a-n-plus-b\node_modules\@iarna\toml\lib\toml-parser.js:390:22)
at TOMLParser.runOne (~\a-n-plus-b\node_modules\@iarna\toml\lib\parser.js:64:30)
at TOMLParser.parse (~\a-n-plus-b\node_modules\@iarna\toml\lib\parser.js:45:22)
at Module.parseString (~\a-n-plus-b\node_modules\@iarna\toml\parse-string.js:13:12) {
fromTOML: true,
wrapped: null,
line: 81,
col: 33,
pos: 1922
}
The text was updated successfully, but these errors were encountered:
Steps to reproduce:
On Windows, install uv.
Run:
$ git clone https://github.com/InSyncWithFoo/a-n-plus-b $ git reset --hard 400cea7 $ cd a-n-plus $ uvx -p 3.11 tox
(Alternatively, use Python 3.11 to create a virtual environment and run tox from that.)
Logs:
The
pyproject.toml
file in question can be found here. Relevant lines (80 to 84, 0-indexed):This is only reproducible on Windows with Pyright 1.1.386, which uses
@iarna/toml
3.0.0. The actual Python version is irrelevant, but, as declared, thetypecheck
environment requires 3.11.The error can be replicated by passing the text to
TOML.parse()
manually:The text was updated successfully, but these errors were encountered: