summaryrefslogtreecommitdiff
path: root/pyrightconfig.json
AgeCommit message (Collapse)Author
2023-06-30Also move Pyright / VS Code to Qt 6Florian Bruhin
See #7370
2022-10-29Configure pyright to look at PyQt5 imports.toofar
Define some constants for pyright to control how it handles the imports in qutebrowser.qt.* This is mainly for autocompletion and definitions with VS Code, which uses pyright via the pylance extension. If you have multiple possible places something could be imported from, and one of them isn't installed, the type of the thing being imported will fall back to Any, and you wont get nice things. So we use this file to make sure only certain imports are configured. The most important thing to remember about this file is it'll control where type definitions come from in VS Code. You can have multiple backends defined as true, generally the last import will win in that case. If any of the enabled imports aren't installed though you may not get any type hints at all. PyQt5 has been configured for now to match the type checking configured in CI. Personally I would be fine with PyQt6 configured here anyway since that's generally what we are developing against these days. See #7370 for more info.