GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TYP: Backport a number of typing updates. by charris · Pull Request #32904 · numpy/numpy

Conversation

@charris

@charris charris commented Oct 6, 2026

Copy link
Copy Markdown
Member

Backports of #32780, #32781, #32877, #32879, #32881, #32882, #32883, #32884, and #32886

No AI.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jorenham reacted with heart emoji
All reactions
  • ❤️ 1 reaction
jorenham and others added 10 commits October 5, 2026 18:25
@jorenham @charris
TYP: finfo accept dtype[complex128] (numpy#32780)
c7606c3
@jorenham @charris
TYP: random.RandomState.rand[n] accept np.integer (numpy#32781)
9c9ce07
@jorenham @charris
TYP: isscalar type narrowing fix (numpy#32877)
5cabcfa
@jorenham @charris
TYP: ndarray.flat missing setter (numpy#32879)
62eda32
@jorenham @charris
TYP: arrayprint accepts float for threshold and ``linewdt…
c3564d7
…h`` (numpy#32881)
@jorenham @charris
TYP: NpzFile.f type fix (numpy#32882)
8af54dd
@jorenham @charris
TYP: shares_memory/may_share_memory accept int | None (nu…
eb67ed7
…mpy#32883)
@jorenham @charris
TYP: busdaycalendar accept str dates for holidays (numpy#…
cf6a20c
…32884)
@jorenham @charris
TYP: testing.run_threaded: fix callable signature and ``prepare_a…
c2f3a74
…rgs`` type (numpy#32886)
@charris
MAINT: Fix some ruff warnings.
1ae5064
@charris charris added this to the 2.5.4 release milestone Oct 6, 2026
@charris charris added 08 - Backport Used to tag backport PRs 41 - Static typing labels Oct 6, 2026
jorenham
jorenham reviewed Oct 6, 2026
View reviewed changes
Comment thread numpy/_core/multiarray.pyi Resolved

Uh oh!

There was an error while loading. Please reload this page.

@charris
TYP: Fix _TimezoneContext redefinition.
03e31cc
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Diff from mypy_primer, showing the effect of this PR on type check results on a corpus of open source code:

pandera (https://github.com/pandera-dev/pandera)
+ pandera/backends/xarray/error_formatters.py:35: error: Argument 1 to "__call__" of "_UFunc_Nin1_Nout1" has incompatible type "generic[Any] | int | float | complex | str | bytes | memoryview[int] | Number"; expected "complex | str | bytes | generic[Any]"  [arg-type]
jorenham reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris
charris merged commit 02581f1 into numpy:maintenance/2.5.x Oct 6, 2026
11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@charris
charris deleted the backport-typing branch October 6, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jorenham jorenham jorenham left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

08 - Backport Used to tag backport PRs 41 - Static typing

Projects

None yet

Milestone

2.5.4 release

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@charris @jorenham
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.