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

Add a check for sys.version_info version order #481

Merged
merged 9 commits into from
Apr 18, 2024

Conversation

tomasr8
Copy link
Contributor

@tomasr8 tomasr8 commented Apr 15, 2024

Closes #478

Found myself with some free time so I thought I'd add this ;)
I wasn't sure about the wording of the error message - I kept it as is but let me know!

This comment has been minimized.

pyi.py Outdated Show resolved Hide resolved
@AlexWaygood
Copy link
Collaborator

Thanks, as always! Your contributions are always really high-quality and appreciated :-)

Copy link
Collaborator

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Could you also add a bullet to CHANGELOG.md?

This comment has been minimized.

pyi.py Outdated Show resolved Hide resolved

This comment has been minimized.

@tomasr8
Copy link
Contributor Author

tomasr8 commented Apr 16, 2024

Should be gtg from my side :)

pyi.py Outdated Show resolved Hide resolved
@tomasr8 tomasr8 changed the title Add a check sys.version_info version order Add a check for sys.version_info version order Apr 16, 2024

This comment has been minimized.

@tomasr8
Copy link
Contributor Author

tomasr8 commented Apr 16, 2024

I updated the tests based on your suggestions :)

Copy link

This change has no effect on typeshed. 🤖🎉

Copy link
Collaborator

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Looks great to me. Thanks!

@AlexWaygood AlexWaygood merged commit fa7bab6 into PyCQA:main Apr 18, 2024
20 checks passed
@tomasr8 tomasr8 deleted the version-info branch April 18, 2024 12:29
@tomasr8
Copy link
Contributor Author

tomasr8 commented Apr 18, 2024

That was fast 👀 Thanks for the review!

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

Successfully merging this pull request may close these issues.

Implement typeshed's if/else sys.version_info order of new vs old block
2 participants