Skip to content

Conversation

jorenham
Copy link
Member

This addresses the following mismatches between runtime and the stubs

spurious in numpy.__all__ (removed):

  • '_get_promotion_state'
  • '_no_nep50_warning'
  • '_set_promotion_state'
  • 'version'

missing in numpy.__all__ (added):

  • 'in1d' (in1d() is marked with @deprecated)
  • 'trapz' (trapz() is marked with @deprecated)
  • 'matvec'
  • 'vecmat'

missing dunders returned by numpy.__dir__() (not in numpy.__all__):

  • __config__ (re-exported)
  • __NUMPY_SETUP__ (added)
  • __numpy_submodules__ (added)
  • __expired_attributes__ (added)
  • __former_attrs__ (added)
  • __future_scalars__ (added)

missing implicitly exported modules in numpy (added):

  • matlib
  • matrixlib,
  • version
  • distutils (iff. python < 3.12)

@jorenham jorenham added the 09 - Backport-Candidate PRs tagged should be backported label Jan 16, 2025
@jorenham jorenham added this to the 2.2.2 release milestone Jan 16, 2025
@charris charris merged commit 18ea55b into numpy:main Jan 17, 2025
69 checks passed
@charris
Copy link
Member

charris commented Jan 17, 2025

Thanks Joren.

@jorenham jorenham deleted the typing/fix-exports branch January 17, 2025 02:09
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jan 17, 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