Skip to content
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

Revert "Fix is_total_slice for size-1 dimensions (#1800)" #1882

Closed
wants to merge 2 commits into from

Conversation

dcherian
Copy link
Contributor

This reverts commit 9d046ea.

Closes #1874 by reverting #1800

TODO:

  • Add unit tests and/or doctests in docstrings
  • Changes documented in docs/release.rst
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

@@ -234,17 +234,8 @@ def is_total_slice(item, shape: Tuple[int]) -> bool:
if isinstance(item, tuple):
return all(
(
(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alternatively I could comment this out and add a TODO

Copy link
Member

Choose a reason for hiding this comment

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

From my side, +1 for reverting. We can also revert the revert.

@dcherian dcherian marked this pull request as draft May 16, 2024 13:55
@jhamman
Copy link
Member

jhamman commented May 16, 2024

I lean toward failing forward on this issue. #1875 is looking good so I think we should get that out, rather than revert.

@dcherian
Copy link
Contributor Author

As you wish :)

@dcherian dcherian closed this May 16, 2024
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.

Regression in v2.18.0 when setting an item in an object array
3 participants