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: toPython helpers for QDate and QTime #361

Merged
merged 4 commits into from
Aug 12, 2022

Conversation

bob-schumaker
Copy link
Contributor

This adds toPython() compat functions to QDate and QTime for symmetry.

@CAM-Gerlach CAM-Gerlach changed the title toPython helpers for QDate and QTime PR: toPython helpers for QDate and QTime Aug 12, 2022
Copy link
Member

@CAM-Gerlach CAM-Gerlach left a comment

Choose a reason for hiding this comment

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

Seems naively reasonable to me overall, but I'd defer to @dalthviz on that.

Could you either add tests like the one for QDateTime.toPython (or parameterize that test accordingly)?

qtpy/QtCore.py Outdated Show resolved Hide resolved
Missed a step that didn't get caught in testing for some reason.

Co-authored-by: CAM Gerlach <[email protected]>
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.

Hi @bob-schumaker thank you for working on this! I would say that the missing thing here is to add some tests for QDate.toPython and QTime.toPython as @CAM-Gerlach mentioned. If you need help with that let us know!

Other than that this LGTM 👍

@dalthviz dalthviz added this to the v2.2.1 milestone Aug 12, 2022
@bob-schumaker
Copy link
Contributor Author

Hi @bob-schumaker thank you for working on this! I would say that the missing thing here is to add some tests for QDate.toPython and QTime.toPython as @CAM-Gerlach mentioned. If you need help with that let us know!

Other than that this LGTM 👍

Duh, out of practice. Let me add the tests :-)

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 @bob-schumaker !

@dalthviz dalthviz merged commit 75984bc into spyder-ide:master Aug 12, 2022
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.

3 participants