[all-commits] [llvm/llvm-project] af2530: [Workflow] make code-format-helper.py mypy-safe (N...

Ryan Prichard via All-commits all-commits at lists.llvm.org
Fri Oct 20 15:08:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af253043190668f8b2030c168ed25903eee531f7
      https://github.com/llvm/llvm-project/commit/af253043190668f8b2030c168ed25903eee531f7
  Author: Ryan Prichard <rprichard at google.com>
  Date:   2023-10-20 (Fri, 20 Oct 2023)

  Changed paths:
    M llvm/utils/git/code-format-helper.py

  Log Message:
  -----------
  [Workflow] make code-format-helper.py mypy-safe (NFC) (#69691)

Fix type errors that mypy reports with code-format-helper.py.

Add a few return type annotations and change `param: [str]` to
`param: list[str]`.

Leave a few required FormatHelper members missing instead of defining a
placeholder:
 - FormatHelper.name
 - FormatHelper.friendly_name
 - FormatHelper.format_run: NotImplementedError() instead of `pass`




More information about the All-commits mailing list