Skip to content

regression: "unecessary #type ignore" reported in stdlib #10487

@bukzor

Description

@bukzor

I've pinpointed this regression to 1.401.

$ pyright --verbose lib/sudo-gcp/sudo_gcp/__main__.py
Loading pyproject.toml file at ./pyproject.toml
Execution environment: python
  Extra paths:
    ./venv/lib/python3.13/site-packages
  Python version: 3.13
  Python platform: Linux
Found 1 source file
pyright 1.1.401
  ./node_modules/.pnpm/pyright@1.1.401/node_modules/pyright/dist/typeshed-fallback/stdlib/_typeshed/_type_checker_internals.pyi
  ./node_modules/.pnpm/pyright@1.1.401/node_modules/pyright/dist/typeshed-fallback/stdlib/_typeshed/_type_checker_internals.pyi:52:91 - error: Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
1 error, 0 warnings, 0 informations

By contrast, in 1.1.400

[2025-05-21 Wed PM 02:09-0500] buck@macbookpro.lan $ pyright --verbose lib/sudo-gcp/sudo_gcp/__main__.py
Loading pyproject.toml file at ./pyproject.toml
Execution environment: python
  Extra paths:
    ./venv/lib/python3.13/site-packages
  Python version: 3.13
  Python platform: Linux
Found 1 source file
pyright 1.1.400
0 errors, 0 warnings, 0 informations

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions