Skip to content

fix: ensure the args for ufunc are ArrayLikes#3614

Merged
ianna merged 1 commit intoscikit-hep:pre-commit-ci-update-configfrom
pfackeldey:pre-commit-ci-update-config
Aug 26, 2025
Merged

fix: ensure the args for ufunc are ArrayLikes#3614
ianna merged 1 commit intoscikit-hep:pre-commit-ci-update-configfrom
pfackeldey:pre-commit-ci-update-config

Conversation

@pfackeldey
Copy link
Copy Markdown
Collaborator

I'm not sure why this is not inferred anymore as before, but in order to satisfy the typing interface we pin the type properly.

@ianna
Copy link
Copy Markdown
Member

ianna commented Aug 11, 2025

I'm not sure why this is not inferred anymore as before, but in order to satisfy the typing interface we pin the type properly.

Thanks for fixing it! It would be good to understand the cause of it.

@pfackeldey
Copy link
Copy Markdown
Collaborator Author

It's weird to me, because the typing resolution for the non-typetracer case looks the same, and it doesn't complain there. I'll try to understand it better, but I'd suggest we move on with this as this doesn't affect any runtime behavior.

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (pre-commit-ci-update-config@1ae06e0). Learn more about missing BASE report.

Additional details and impacted files
Files with missing lines Coverage Δ
src/awkward/_nplikes/typetracer.py 77.19% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ianna ianna added the pr-next-release Required for the next release label Aug 14, 2025
@pfackeldey pfackeldey requested a review from ianna August 14, 2025 19:48
Copy link
Copy Markdown
Member

@ianna ianna left a comment

Choose a reason for hiding this comment

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

@pfackeldey - Great! Thanks for fixing it.

@ianna ianna merged commit a69de92 into scikit-hep:pre-commit-ci-update-config Aug 26, 2025
47 checks passed
ianna added a commit that referenced this pull request Aug 26, 2025
* chore: update pre-commit hooks

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.2 → v0.12.7](astral-sh/ruff-pre-commit@v0.12.2...v0.12.7)
- [github.com/pre-commit/mirrors-mypy: v1.16.1 → v1.17.1](pre-commit/mirrors-mypy@v1.16.1...v1.17.1)

* fix: ensure the args for ufunc are ArrayLikes (#3614)

typing: ensure the args for ufunc are ArrayLikes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ianna Osborne <ianna.osborne@cern.ch>
Co-authored-by: Peter Fackeldey <fackeldey.peter@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-next-release Required for the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants