Skip to content

TYP: Type default values in stubs in numpy/ma #29531

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MarcoGorelli
Copy link
Member

@MarcoGorelli MarcoGorelli commented Aug 7, 2025

Making some progress towards #28428

Similar PR in pandas: pandas-dev/pandas-stubs#1293

I've done this based on work started in https://gist.github.com/yangdanny97/170f82ee5389584f8b6292bc4ea9c24d, we're looking at open-sourcing a reusable tool to do this automatically where possible:

  • if a stub file uses = ...
  • and the corresponding defintion has a simple default
  • then fill the ... in

The ones in this PR, I checked manually, and they look correct to me

@jorenham jorenham added the component: numpy.ma masked arrays label Aug 8, 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.

2 participants