https://github.com/maresb/pyqt6-without-qt
A minimized version of pyqt6 for purposes of type stubs
https://github.com/maresb/pyqt6-without-qt
Last synced: 4 months ago
JSON representation
A minimized version of pyqt6 for purposes of type stubs
- Host: GitHub
- URL: https://github.com/maresb/pyqt6-without-qt
- Owner: maresb
- Created: 2024-04-27T20:31:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-22T08:50:57.000Z (over 1 year ago)
- Last Synced: 2025-01-17T08:35:55.691Z (over 1 year ago)
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pyqt6-without-qt
[](https://pypi.org/project/pyqt6-without-qt/)
I want to be able to run [mypy](https://mypy-lang.org/) on [pre-commit.ci](https://pre-commit.ci/) to type-check PyQt6 code. However, since Qt is so large, I'm getting the error
```shell
build of https://github.com/pre-commit/mirrors-mypy:pyqt6,...@v1.9.0
for python@python3 exceeds tier max size 250MiB: 277.2MiB
```
Since all I care about are the stubs, I simply modify the wheels to remove the dependency on `PyQt6-Qt6`. Now, upon replacing `pyqt6` with `pyqt6-without-qt` in my `additional_dependencies`, I am under the quota and can run the full type checks.
(The particular project this is being used for is [Labelle](https://github.com/labelle-org/labelle).)