Skip to content

General improvements and fixes to stubs #3335

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

Merged
merged 9 commits into from
Feb 19, 2025

Conversation

aatle
Copy link
Contributor

@aatle aatle commented Feb 12, 2025

Collection of general fixes to stubs.
Especially, making some attributes that seemed to be read-only when I tested, read-only.
Plus minor corrections, internal renaming.

Notes:
It seems that stubtest didn't catch the incorrect return type of sndarray.use_arraytype() even though sndarray is a python module.
I found that midi.Input.device_id was undocumented. Also midi.__theclasses__, an unused variable.
There are 2 other larger stub issues that I will address in later PRs.

@aatle aatle requested a review from a team as a code owner February 12, 2025 03:05
Copy link
Member

@ankith26 ankith26 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the PR 🎉

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.

Fixes looks good to me, thank you!

@damusss damusss added type hints Type hint checking related tasks bugfix PR that fixes bug labels Feb 19, 2025
@damusss damusss added this to the 2.5.4 milestone Feb 19, 2025
@damusss damusss merged commit 011162a into pygame-community:main Feb 19, 2025
25 checks passed
@aatle aatle deleted the typing-fixes branch February 20, 2025 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PR that fixes bug type hints Type hint checking related tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants