Issue 141877
Summary [lldb] Add a CI step to run a python type checker
Labels new issue
Assignees
Reporter ashgti
    lldb has a minimum version of python 3.8 at the moment.

Since python 3.5, type annotations have been supported as part of the language and this can help us catch issues during testing and development.

At the moment, not much of lldb's test suite contains type annotations but if we wanted start adding them thought the tests it could be helpful for catching issues.

If we wanted to enable this on the CI systems we would need to figure out which type checker we'd want to use.

I think the most common python type checkers are [mypy](https://github.com/python/mypy) and [pyright](https://github.com/microsoft/pyright), although others exist as well.

Once we have that setup and configured we likely need to update lldb/test/requirements.txt to include the type checker and likely the `type_extensions` library, which is a library that back ports type helpers to older versions of python.

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to