Skip to content

Conversation

j-bowhay
Copy link
Member

follow up to #21085

Complex inputs are deprecated and scheduled to be removed in this release.

@j-bowhay j-bowhay added this to the 1.17.0 milestone Jun 21, 2025
@github-actions github-actions bot added scipy.spatial deprecated Items related to behavior that has been deprecated labels Jun 21, 2025
@j-bowhay j-bowhay mentioned this pull request Jun 21, 2025
32 tasks
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

Thanks @j-bowhay. Did you consider raising a TypeError? That seems a little more appropriate for unsupported dtypes, given that numpy arrays can be parametrized by dtype in type annotations. I'm not sure we do this fully consistently in other places, but I think TypeError is expected.

Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

LGTM now, in it goes.

@rgommers rgommers merged commit 5c4f382 into scipy:main Jun 22, 2025
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecated Items related to behavior that has been deprecated scipy.spatial
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants