[Lldb-commits] [lldb] [llvm] [lldb] Add type hints to gdbclientutils.py and use abstract base class (PR #162172)

Daniel Sanders via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 9 14:50:33 PDT 2025


dsandersllvm wrote:

> If this way will work in 3.9 as well, do it. If not, drop those annotations. Let's not make this situation more confusing, the pay off isn't there for the sake of a few type annotations.

This is fixed in the latest fixup commits. I also included a small edit to pyproject.toml that will cause pyright to call out usage of too-new API's and language features for people using pyright as an LSP. This actually caught a bit of 3.10 I wasn't aware of (the `str | None` instead of `Optional[str]`). I can do the pyproject.toml change in a separate PR if you prefer

https://github.com/llvm/llvm-project/pull/162172


More information about the lldb-commits mailing list