Skip to content

Type ignore comments with ty-namespaced codes are not recognized as blanket type ignores #11345

Closed

Description

@correctmost

Describe the bug

ty 0.0.25 added support for type ignore comments that use namespaced codes and look like this: type: ignore[ty:unresolved-reference] (astral-sh/ruff#24096).

When these namespaced codes are used, Pyright fails to treat the comment as a blanket type ignore.

Code or Screenshots

a[1]  # type: ignore[name-defined, ty:unresolved-reference]
error: "a" is not defined (reportUndefinedVariable)

VS Code extension or command-line
1.1.408 (command-line version)

Activity

  1. added
    bug
    on Mar 25, 2026
  2. added a commit that references this issue on Apr 14, 2026
    078831b
  3. alliasgher commented on Apr 14, 2026

    @alliasgher
    Contributor

    Opened #11383 for this.

  4. added a commit that references this issue on Apr 14, 2026
    367863e
  5. added a commit that references this issue on Apr 14, 2026
    28ea84a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions