Skip to content

TYP: Fix type annotations for np.ma.nomask and np.ma.MaskType#28831

Merged
jorenham merged 2 commits into
numpy:mainfrom
MarcoGorelli:fix-ma-nomask-masktype
Apr 26, 2025
Merged

TYP: Fix type annotations for np.ma.nomask and np.ma.MaskType#28831
jorenham merged 2 commits into
numpy:mainfrom
MarcoGorelli:fix-ma-nomask-masktype

Conversation

@MarcoGorelli

@MarcoGorelli MarcoGorelli commented Apr 26, 2025

Copy link
Copy Markdown
Member

Not sure that the current type hints are correct for these, as np.ma.nomask returns a NumPy boolean, not a stdlib one

@MarcoGorelli MarcoGorelli force-pushed the fix-ma-nomask-masktype branch 2 times, most recently from f5529e1 to 2ea4c4c Compare April 26, 2025 13:22
@jorenham jorenham self-requested a review April 26, 2025 14:26
@MarcoGorelli MarcoGorelli force-pushed the fix-ma-nomask-masktype branch from 2ea4c4c to f69a24c Compare April 26, 2025 14:54
Comment thread numpy/ma/core.pyi Outdated
Comment thread numpy/ma/core.pyi Outdated
@MarcoGorelli MarcoGorelli marked this pull request as ready for review April 26, 2025 15:42
@MarcoGorelli

Copy link
Copy Markdown
Member Author

thanks for your review!

@jorenham jorenham merged commit fb50a12 into numpy:main Apr 26, 2025
@jorenham

Copy link
Copy Markdown
Member

Thanks Marco!

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