Skip to content

Error parsing TOML on 1.1.386 if using comments in Arrays #9296

@pavel-naumenko

Description

@pavel-naumenko

Description

After upgrading from 1.1.385 to 1.1.386 pyright raises errors "Pyproject file parse attempt 1 error:"

Issue is raised if pyproject.toml has comments in arrays

E.g. error in 1.1.386 (while OK in 1.1.385

[project]
name = "test"
version = "1.0.0"
dependencies = [
    "lib_a==1.1.1", # comment
    "lib_b==1.1.2"
]

If removing comments, parsing is OK in new version also

[project]
name = "test"
version = "1.0.0"
dependencies = [
    "lib_a==1.1.1", 
    "lib_b==1.1.2"
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    addressed in next versionIssue is fixed and will appear in next published versionbugSomething isn't workingregression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions