Skip to content

Conversation

@jorenham
Copy link
Member

This addresses the same issue as #30091, but for numpy.ma.core._convert2ma.

Comment on lines +8764 to +8766
# workaround for a doctest bug in Python 3.11 that incorrectly assumes `__code__`
# exists on wrapped functions
del wrapper.__wrapped__
Copy link
Member Author

@jorenham jorenham Oct 30, 2025

@charris charris merged commit 5d92c7a into numpy:main Oct 31, 2025
80 checks passed
@charris
Copy link
Member

charris commented Oct 31, 2025

Thanks Joren.

@jorenham jorenham deleted the fix-ma.core._convert2ma branch October 31, 2025 18:42
cakedev0 pushed a commit to cakedev0/numpy that referenced this pull request Dec 5, 2025
* BUG: Fix ``ma.core._convert2ma`` function signatures

* TYP: Annotate `ma.core.arange`

* TYP: Annotate `ma.core.clip`

* TYP: Annotate `ma.core.{empty, zeros, ones}`

* TYP: Annotate `ma.core.{empty, zeros, ones}_like`

* TYP: fix incorrect `ma.empty` call in a type-test

* TYP: Annotate `ma.core.identity`

* TYP: Annotate `ma.core.indices`

* TYP: Annotate `ma.core.squeeze`

* TYP: Update stubs for `ma.core._convert2ma`

* BUG: Doctest bug workaround
IndifferentArea pushed a commit to IndifferentArea/numpy that referenced this pull request Dec 7, 2025
* BUG: Fix ``ma.core._convert2ma`` function signatures

* TYP: Annotate `ma.core.arange`

* TYP: Annotate `ma.core.clip`

* TYP: Annotate `ma.core.{empty, zeros, ones}`

* TYP: Annotate `ma.core.{empty, zeros, ones}_like`

* TYP: fix incorrect `ma.empty` call in a type-test

* TYP: Annotate `ma.core.identity`

* TYP: Annotate `ma.core.indices`

* TYP: Annotate `ma.core.squeeze`

* TYP: Update stubs for `ma.core._convert2ma`

* BUG: Doctest bug workaround
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