Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Multiple Python TSG grammar scoping errors #497

@Lexxxzy

Description

@Lexxxzy

Current Python TSG grammar has several scoping issues that prevent files from being indexed, specifically:

  • Using keyword arguments in a class’s base list (e.g., class Parts(TypedDict, total=False):) triggers an Undefined scoped variable … keyword_argument.output error.
  • Typed splat parameters (e.g., **_kwargs: str, *args: Any) result in an Undefined scoped variable … dictionary_splat_pattern.def error.
  • Chained assignments (e.g., a = b = 1) raise an Undefined scoped variable … syntax node assignment error.
  • Parameterless lambdas (e.g., dataclasses.field(default_factory=lambda: [0])) lead to an Undefined scoped variable [syntax node lambda] error.

These errors results in a fatal failure, preventing the affected files from being indexed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions