[all-commits] [llvm/llvm-project] 35593f: [MLIR][Python] Use isinstance() instead of issubcl...

Sergei Lebedev via All-commits all-commits at lists.llvm.org
Wed Feb 21 02:06:41 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35593f6613445fe4a8daa6e7589deec82fcd4d2b
      https://github.com/llvm/llvm-project/commit/35593f6613445fe4a8daa6e7589deec82fcd4d2b
  Author: Sergei Lebedev <185856+superbobry at users.noreply.github.com>
  Date:   2024-02-21 (Wed, 21 Feb 2024)

  Changed paths:
    M mlir/test/mlir-tblgen/op-python-bindings.td
    M mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp

  Log Message:
  -----------
  [MLIR][Python] Use isinstance() instead of issubclass(type(...), ...) (#82345)

The two forms are equivalent, so there is no reason to use the longer
one.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list