Skip to content

Aligns zeros and ones to numpy, adds and/or fixes overloads to zeros, ones, full#5376

Open
drculhane wants to merge 9 commits intoBears-R-Us:mainfrom
drculhane:Closes-5375
Open

Aligns zeros and ones to numpy, adds and/or fixes overloads to zeros, ones, full#5376
drculhane wants to merge 9 commits intoBears-R-Us:mainfrom
drculhane:Closes-5375

Conversation

@drculhane
Copy link
Contributor

Closes #5375

As noted in Issue 5375, we weren't handling dtype=None correctly in zeros and ones. This fixes that.

It also adds overloads to zeros and ones, and corrects/updates the overloads for full. The full overloads are much trickier, since dtype=None causes different behavior than it does in zeros and ones (it infers the dtype from the fill_value).

There is also a change in util.py in a line where full is called. The type is resolved to something compatible with the new overloads.

@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@c235a25). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #5376   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?         5           
  Lines           ?       115           
  Branches        ?         0           
========================================
  Hits            ?       115           
  Misses          ?         0           
  Partials        ?         0           
Flag Coverage Δ
python-coverage 100.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

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.

Align zeros, ones, full to numpy, and add/fix overloads

2 participants