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: Add wrapper around sip/shiboken isdeleted/isvalid (compat.py) #354

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

zjp
Copy link
Contributor

@zjp zjp commented Jul 16, 2022

Fixes #302

This just adds a wrapper around the sip.isdeleted and shiboken.isValid functions

@dalthviz dalthviz added this to the v2.2.0 milestone Jul 18, 2022
Copy link
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

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

Thanks @zjp for helping with this! Could it be possible to add some sort of test for this new function (in something like qtpy/tests/test_compat.py)?

Other than this LGTM 👍

@zjp
Copy link
Contributor Author

zjp commented Jul 18, 2022

Yes, absolutely! I'll force-push some tests when I think of a good one.

@zjp
Copy link
Contributor Author

zjp commented Jul 18, 2022

OK, I've added what I hope is a satisfactory test.

@zjp
Copy link
Contributor Author

zjp commented Jul 18, 2022

Not entirely sure what's causing these checks to fail. I can run this test locally OK.

@zjp
Copy link
Contributor Author

zjp commented Jul 19, 2022

Aha, if you're going quick it's easy to overlook isdeleted and isValid are semantically opposites... that should fix it.

@dalthviz dalthviz changed the title compat.py: Add wrapper around sip/shiboken isdeleted/isvalid PR: Add wrapper around sip/shiboken isdeleted/isvalid (compat.py) Jul 19, 2022
Copy link
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

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

Thanks @zjp for your work on this! LGTM 👍

@dalthviz dalthviz merged commit b3efba8 into spyder-ide:master Jul 19, 2022
@zjp
Copy link
Contributor Author

zjp commented Jul 19, 2022

No problem, I'm happy to contribute!

@zjp zjp deleted the objectisalive branch July 19, 2022 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compat shiboken and sip like Qt.py
2 participants