Skip to content
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: Ensure QMenu and QToolBar isinstance checks succeed and remove unneeded wrapper classes #507

Merged
merged 7 commits into from
Dec 16, 2024

Conversation

dalthviz
Copy link
Member

@dalthviz dalthviz commented Dec 12, 2024

Fixes #502
Fixes #505

@dalthviz dalthviz self-assigned this Dec 12, 2024
@dalthviz dalthviz added this to the v2.4.3 milestone Dec 12, 2024
@coveralls
Copy link

coveralls commented Dec 12, 2024

Coverage Status

coverage: 90.041% (-0.1%) from 90.18%
when pulling b938c9d on dalthviz:fixes_issue_505
into cd0b49b on spyder-ide:master.

@dalthviz dalthviz changed the title PR: Ensure QMenu submenus are QMenu instances PR: Ensure QMenu, QToolBar and other classes isinstances checks succeed Dec 12, 2024
@dalthviz dalthviz changed the title PR: Ensure QMenu, QToolBar and other classes isinstances checks succeed PR: Ensure QMenu, QToolBar and other classes isinstance checks succeed Dec 12, 2024
@dalthviz dalthviz closed this Dec 12, 2024
@dalthviz dalthviz reopened this Dec 12, 2024
@dalthviz dalthviz changed the title PR: Ensure QMenu, QToolBar and other classes isinstance checks succeed PR: Ensure QMenu, QToolBar and other classes isinstance checks succeed and remove unneeded wrapper classes Dec 13, 2024
@dalthviz dalthviz changed the title PR: Ensure QMenu, QToolBar and other classes isinstance checks succeed and remove unneeded wrapper classes PR: Ensure QMenu and QToolBar isinstance checks succeed and remove unneeded wrapper classes Dec 13, 2024
@dalthviz dalthviz marked this pull request as ready for review December 13, 2024 23:11
@dalthviz dalthviz requested a review from ccordoba12 December 13, 2024 23:12
@StSav012
Copy link
Contributor

My bad. I haven't thought of such a consequence. The changes you've proposed are the only way, then. Apparently, I've removed the test case that led me to the inheritance of the classes. So, I can't review it to see if it was erroneous. As the tests pass, it should be OK.

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks @dalthviz!

@ccordoba12 ccordoba12 merged commit 3969d99 into spyder-ide:master Dec 16, 2024
14 checks passed
@ccordoba12
Copy link
Member

@dalthviz, given the severity of this problem, I think we should release 2.4.3 asap.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Breaking change related to QMenu in 2.4.2 Hijacked PyQt types are not returned from native Qt APIs
4 participants