Skip to content

build-llvm.py: Drop ty call-top-callable suppression - #351

Merged
msfjarvis merged 1 commit into
ClangBuiltLinux:mainfrom
nathanchance:fix-ty-check-0.0.80
Sep 14, 2026
Merged

msfjarvis merged 1 commit into
ClangBuiltLinux:mainfrom
nathanchance:fix-ty-check-0.0.80

Conversation

@nathanchance

Copy link
Copy Markdown
Member

With ty 0.0.80, it is no longer necessary, as evidenced by the unused-ignore-comment warning emitted:

warning[unused-ignore-comment]: Unused `ty: ignore` directive
   --> build-llvm.py:776:38
    |
776 |             pgo_builder.configure()  # ty: ignore[call-top-callable]
    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: Remove the unused suppression comment
    |
775 |             # We know this is safe to call with no arguments
    -             pgo_builder.configure()  # ty: ignore[call-top-callable]
776 +             pgo_builder.configure()
777 |         pgo_builder.build()
    |

With ty 0.0.80, it is no longer necessary, as evidenced by the
unused-ignore-comment warning emitted:

  warning[unused-ignore-comment]: Unused `ty: ignore` directive
     --> build-llvm.py:776:38
      |
  776 |             pgo_builder.configure()  # ty: ignore[call-top-callable]
      |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  help: Remove the unused suppression comment
      |
  775 |             # We know this is safe to call with no arguments
      -             pgo_builder.configure()  # ty: ignore[call-top-callable]
  776 +             pgo_builder.configure()
  777 |         pgo_builder.build()
      |

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
@msfjarvis
msfjarvis merged commit 079d013 into ClangBuiltLinux:main Sep 14, 2026
8 checks passed
@nathanchance
nathanchance deleted the fix-ty-check-0.0.80 branch September 14, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants