Skip to content

👽️ Port the recent _core and lib numpy typing PRs#683

Merged
jorenham merged 5 commits into
mainfrom
gh-581
Aug 12, 2025
Merged

👽️ Port the recent _core and lib numpy typing PRs#683
jorenham merged 5 commits into
mainfrom
gh-581

Conversation

@jorenham jorenham added the port: from numpy NumPy PR's that should be ported to NumType label Aug 12, 2025
@jorenham jorenham requested a review from Copilot August 12, 2025 17:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR ports several upstream NumPy typing improvements from the main NumPy repository, focusing on type annotation refinements and interface updates across multiple modules.

  • Improves type safety by adding more specific type annotations and updating generic type variables
  • Updates function signatures to accept None values where appropriate in reduction functions
  • Refines type definitions for better compatibility with typing checkers

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/numpy-stubs/lib/_iotools.pyi Updates type annotations, renames validation kwargs class, and adds new utility functions
src/numpy-stubs/_core/overrides.pyi Refactors type variables and introduces type aliases for better dispatcher typing
src/numpy-stubs/_core/fromnumeric.pyi Adds None support to all() and any() function signatures
src/numpy-stubs/_core/_multiarray_umath.pyi Changes parameter types from Sequence to SupportsLenAndGetItem
src/numpy-stubs/init.pyi Exports additional _NoValue symbol from _globals

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/numpy-stubs/lib/_iotools.pyi
@jorenham jorenham added this to the v2.3.x.x milestone Aug 12, 2025
@jorenham jorenham merged commit bf78987 into main Aug 12, 2025
20 checks passed
@jorenham jorenham deleted the gh-581 branch August 12, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

port: from numpy NumPy PR's that should be ported to NumType

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port the recent _core and lib numpy typing PRs

2 participants