[mlir] Fix copy-pasted docstrings in Python bindings
authorAlex Zinenko <zinenko@google.com>
Tue, 20 Oct 2020 09:22:29 +0000 (11:22 +0200)
committerAlex Zinenko <zinenko@google.com>
Wed, 21 Oct 2020 07:49:23 +0000 (09:49 +0200)
commitf6f27115e622f2cc6b20579e9d7d84c2304091a1
tree64f14e84d6d236cf40befd40dcabec9943739b3f
parent31782cd2199b808cda6733d6448e1314e2c8ec96
[mlir] Fix copy-pasted docstrings in Python bindings

Docstrings for `__str__` method in many classes was recycling the constant
string defined for `Type`, without being types themselves. Use proper
docstrings instead. Since they are succint, use string literals instead of
top-level constants to avoid further mistakes.

Differential Revision: https://reviews.llvm.org/D89780
mlir/lib/Bindings/Python/IRModules.cpp