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

Mark old xType aliases as deprecated #3288

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

Starbuck5
Copy link
Member

Starts to handle #3239

It would be a huge pain to put in deprecation warnings about this, but the deprecation decorator is easy and we're now using it in other places so lets use it here.

Doesn't touch JoystickType because the C code still works the old way I think, doesn't touch CameraType because CameraType is not in the stubs. In fact CameraType might be removable as an internal implementation detail.

Copy link
Member

@MyreMylar MyreMylar left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Doesn't touch JoystickType because the C code still works the old way I think, doesn't touch CameraType because CameraType is not in the stubs. In fact CameraType might be removable as an internal implementation detail.
@Starbuck5 Starbuck5 force-pushed the mark-oldtypes-deprecated branch from 5fb1dd3 to 65bb565 Compare January 24, 2025 06:01
@Starbuck5 Starbuck5 force-pushed the mark-oldtypes-deprecated branch from 5214012 to 1b2b195 Compare January 25, 2025 22:14
Copy link
Member

@damusss damusss left a comment

Choose a reason for hiding this comment

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

Looking good, thanks!
long live deprecation!

@damusss damusss merged commit d4c3eae into pygame-community:main Jan 28, 2025
22 of 24 checks passed
@ankith26 ankith26 added this to the 2.5.3 milestone Jan 28, 2025
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.

5 participants