[all-commits] [llvm/llvm-project] 65b2f2: Fixed mypy type errors in MLIR Python type stubs

Sergei Lebedev via All-commits all-commits at lists.llvm.org
Thu Mar 31 02:56:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 65b2f24c50f016828a96b9495cee491a4241f9b9
      https://github.com/llvm/llvm-project/commit/65b2f24c50f016828a96b9495cee491a4241f9b9
  Author: Sergei Lebedev <slebedev at google.com>
  Date:   2022-03-31 (Thu, 31 Mar 2022)

  Changed paths:
    M mlir/python/mlir/_mlir_libs/__init__.py
    M mlir/python/mlir/_mlir_libs/_mlir/ir.pyi

  Log Message:
  -----------
  Fixed mypy type errors in MLIR Python type stubs

This commit fixes or disables all errors reported by

    python3 -m mypy -p mlir --show-error-codes

Note that unhashable types cannot be currently expressed in a way compatible
with typeshed. See https://github.com/python/typeshed/issues/6243 for details.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D122790




More information about the All-commits mailing list