[all-commits] [llvm/llvm-project] 8b7347: [mlir] Annotate methods on a correct class in Pybi...

ftynse via All-commits all-commits at lists.llvm.org
Mon Feb 21 04:04:34 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b734798a55bdd8e49d1c0f782382a3c87529352
      https://github.com/llvm/llvm-project/commit/8b734798a55bdd8e49d1c0f782382a3c87529352
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M mlir/include/mlir/Bindings/Python/PybindAdaptors.h

  Log Message:
  -----------
  [mlir] Annotate methods on a correct class in PybindAdaptors.h

The `.def` and `.def_property_readonly` functions in PybindAdaptors.h should
construct the functions as method of the current class rather than as method of
pybind11:none(), which is an object and not even a class.

Depends On D117658

Reviewed By: gysit

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




More information about the All-commits mailing list