[llvm] Configure pyright to the documented minimum python version (PR #162952)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 20 08:08:19 PDT 2025
DavidSpickett wrote:
I tried out a few of these tools and I think we'll have an uphill battle trying to get it applied to the LLVM Project as a whole because:
* There are so many random files that are not arranged in packages
* Some tools don't look outside the individual files
* Some tools are the opposite, too reliant on seeing the package structure (for our purposes I mean, it's understandable why they work this way)
Also what's emerging on the version update thread is different use cases for Python in the project.
So I think what we could do is "suggest" tools via the settings that you're changing, but restricted to areas we know use type annotations.
So if you can figure out how to apply the settings only to lldb-dap scripts and make it run without errors then we can have the lldb-dap maintainers review it. If they don't use pyright, they can add their own settings and now we've got a reference for what to use and it's a good small case study for later.
And if pyright doesn't work that way, well, you'd know better than me. Hopefully you see my concerns anyway so feel free to do this another way.
https://github.com/llvm/llvm-project/pull/162952
More information about the llvm-commits
mailing list