Updated MLIR type stubs to work with pytype
authorSergei Lebedev <slebedev@google.com>
Fri, 25 Mar 2022 12:38:13 +0000 (13:38 +0100)
committerAlex Zinenko <zinenko@google.com>
Fri, 25 Mar 2022 12:38:49 +0000 (13:38 +0100)
commit5177676261147ef6c930e060a13a895e45bb6af4
treedfd14dc79fcb6ebcbee48fa62f40fb3c11a6355a
parentb0225ab8fd4fff92f081da3fabcb635c8e67e5ca
Updated MLIR type stubs to work with pytype

The diff is big, but there are in fact only three kinds of changes

* ir.py had a synax error -- underminated [
* forward references are unnecessary in .pyi files (see https://github.com/python/typeshed/blob/9a76b13127ffa8365431dcc105fc111cdd267e7e/CONTRIBUTING.md?plain=1#L450-L454)
* methods defined via .def_static() are now decorated with @staticmethod

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D122300
mlir/python/mlir/_mlir_libs/_mlir/ir.pyi
mlir/python/mlir/_mlir_libs/_mlir/passmanager.pyi