Skip to content

ENH: Update numpy exceptions imports - #19015

Merged
tylerjereddy merged 1 commit into
scipy:mainfrom
mtsokol:update-np-exceptions-imports
Aug 5, 2023
Merged

tylerjereddy merged 1 commit into
scipy:mainfrom
mtsokol:update-np-exceptions-imports

Conversation

@mtsokol

@mtsokol mtsokol commented Aug 4, 2023 •

Copy link
Copy Markdown
Contributor

Hi!
This PR introduces updated imports of numpy.exceptions depending on NumPy version (from version 2.0, NumPy's exceptions won't be available from the main namespace). Numpy's PR: numpy/numpy#24316

@mtsokol
mtsokol force-pushed the update-np-exceptions-imports branch from 4a4c7b8 to 979fa4e Compare August 4, 2023 10:22

@tylerjereddy tylerjereddy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read the full diff, and some of the linked NumPy PR discussion, and it is straightforward to understand how this is helpful to guard against upcoming NumPy changes.

CI is also happy, so I'll go ahead and merge it in, thanks for your first contribution to SciPy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Items related to regular maintenance tasks scipy._lib

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants