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.

Assessment

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

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.

Description

stubs: Enhancement topic: shape-typing
  • 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)
Dominant language
Python
Stars
81
Forks
11
Avg merge
4h 53m
Merged PRs (30d)
7

Getting set up

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.

More from numpy/numtype

All issues in numpy/numtype

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.