Skip to content

TYP: Fix missing and spurious top-level exports #28178

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 1 commit into from
Jan 17, 2025

Conversation

charris
Copy link
Member

@charris charris commented Jan 17, 2025

Backport of #28170.

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)

@charris charris added 08 - Backport Used to tag backport PRs 41 - Static typing labels Jan 17, 2025
@charris charris added this to the 2.2.2 release milestone Jan 17, 2025
@charris charris merged commit 2c0432b into numpy:maintenance/2.2.x Jan 17, 2025
68 checks passed
@charris charris deleted the backport-28170 branch January 17, 2025 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
08 - Backport Used to tag backport PRs 41 - Static typing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy