-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR: Import all classes in QtTest module. #290
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kumattau for working on this! Could you do some benchmarking to know how much the addition of promote_enums
affects the import time of the module? You can use something like timeit
as done here: #271 (comment)
Otherwise this LGTM 👍 and thanks again for all the work!
I rebased onto master |
I measured the statement "from qtpy import QtTest" with QT_API=pyqt6.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @kumattau ! A little surprised to not see some kind of hit to the import lag, but as far as I can tell, your benchmark results look solid.
@CAM-Gerlach |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kumattau for working on this and the benchmarking! LGTM 👍
I almost forgot to answer this @kumattau :
I would said it is because those are the most used modules and because to add the |
I made this PR to fix #197.
I use promote_enums in QtTest.
In Current QtPy, promote_enums is used in QtCore/QtGui/QtWidgets only, but is there any reason?