Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TST: avoid mutating ndarray.shape attributes#597

Merged
neutrinoceros merged 1 commit into
yt-project:mainfrom
neutrinoceros:tst/avoid-mutating-arrays
Jan 1, 2026
Merged

TST: avoid mutating ndarray.shape attributes#597
neutrinoceros merged 1 commit into
yt-project:mainfrom
neutrinoceros:tst/avoid-mutating-arrays

Conversation

@neutrinoceros
Copy link
Copy Markdown
Member

this is in anticipation of numpy/numpy#29536

@neutrinoceros neutrinoceros force-pushed the tst/avoid-mutating-arrays branch from 4448cd0 to 5f0189f Compare October 19, 2025 13:58
@neutrinoceros
Copy link
Copy Markdown
Member Author

Similar to #595 , this has no user-visible implication, but it could help downstream packagers, so I'd like to include this in the next patch release. @jzuhone

Copy link
Copy Markdown
Member

@cphyc cphyc left a comment

Choose a reason for hiding this comment

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

I went through the code and couldn't find any other place where the .shape attribute is modified directly. Thanks for fixing this :)

@neutrinoceros neutrinoceros merged commit 9f2d64e into yt-project:main Jan 1, 2026
9 checks passed
@neutrinoceros neutrinoceros deleted the tst/avoid-mutating-arrays branch January 1, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants