diff options
| author | Ingo Müller <ingomueller@google.com> | 2024-11-11 09:26:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-11 09:26:15 +0100 |
| commit | 2a448da6e63e2cd3dac63d5398bf121e994d7fc2 (patch) | |
| tree | 5b48a5d397dcf5a23ab379c2cc367fa9892366f5 /lldb/test/API/python_api | |
| parent | d1aa0da7e28f70715bd92b2bc2809ac04a832aa8 (diff) | |
| download | llvm-2a448da6e63e2cd3dac63d5398bf121e994d7fc2.zip llvm-2a448da6e63e2cd3dac63d5398bf121e994d7fc2.tar.gz llvm-2a448da6e63e2cd3dac63d5398bf121e994d7fc2.tar.bz2 | |
[mlir][python] Make types in register_(dialect|operation) more narrow. (#115307)
This PR makes the `pyClass`/`dialectClass` arguments of the pybind11
functions `register_dialect` and `register_operation` as well as their
return types more narrow, concretely, a `py::type` instead of a
`py::object`. As the name of the arguments indicate, they have to be
called with a type instance (a "class"). The PR also updates the typing
stubs of these functions (in the corresponding `.pyi` file), such that
static type checkers are aware of the changed type. With the previous
typing information, `pyright` raised errors on code generated by
tablegen.
Signed-off-by: Ingo Müller <ingomueller@google.com>
Diffstat (limited to 'lldb/test/API/python_api')
0 files changed, 0 insertions, 0 deletions
