numpy / numpy/numtype

improve shape-typing and returned dtypes in `numpy._core.numeric`

Open
#154 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stubs: Enhancement topic: shape-typing
Dominant language
Python
Stars
79
Forks
8
PR merge metrics
No merged PRs in 30d

Description

  • ones and full
  • zeros_like, ones_like, and full_like
  • count_nonzero (only dtypes)
  • argwhere (only shape-typing)
  • correlate and convolve (only dtypes)
  • cross
  • outer (only dtypes)
  • tensordot
  • roll
  • rollaxis
  • moveaxis
  • indices
  • identity
  • isclose (only shape-typing)
  • astype (only dtypes)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the typing stubs for numpy._core.numeric and review the listed functions, beginning with the smaller shape-typing or dtype-only items. Compare each function's current annotations with its intended shape and returned-dtype behavior; done means the checklist items have accurate annotations across the named functions.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.