Skip to content

Fix conversion of numpy array with ndim>0 to scalar#436

Merged
adamltyson merged 1 commit intomainfrom
fix-numpy-dimensionality
Feb 23, 2026
Merged

Fix conversion of numpy array with ndim>0 to scalar#436
adamltyson merged 1 commit intomainfrom
fix-numpy-dimensionality

Conversation

@IgorTatarnikov
Copy link
Member

Before submitting a pull request (PR), please read the contributing guide.

Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?
Following numpy/numpy#29841 the DeprecationWarning has been elevated to a TypeError

What does this PR do?
Fixes the conversion that triggered the test failure.

How has this PR been tested?

All tests pass locally

Checklist:

  • The code has been tested locally
  • The code has been formatted with pre-commit

@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.60%. Comparing base (18d26fa) to head (12c99fe).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #436   +/-   ##
=======================================
  Coverage   86.60%   86.60%           
=======================================
  Files          27       27           
  Lines        1239     1239           
=======================================
  Hits         1073     1073           
  Misses        166      166           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@IgorTatarnikov IgorTatarnikov requested a review from a team February 23, 2026 11:02
@adamltyson adamltyson merged commit 42c6ef1 into main Feb 23, 2026
12 checks passed
@adamltyson adamltyson deleted the fix-numpy-dimensionality branch March 2, 2026 14:20
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