numpy / numpy/numtype

type-test generation for subscripted `datetime64` and `timedelta64` operands

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

Nobody has claimed this yet.

numpy.generic topic: testing
Dominant language
Python
Stars
79
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Generate type-tests for all combinations of datetime64[{None, int, datetime, date, <default>}] and timedelta64[{None, int, timedeta, <default>}] for each of the relevant binary operators.

So e,g, one of them will verify that timedelta64[None].__add__(datetime64) -> datetime64[None]

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

No file or test path is named; first locate the existing type-test generation for datetime64 and timedelta64 operands and identify the relevant binary operators. Add coverage for the stated None, int, datetime, date, and default combinations, then verify each expected result type, including the given timedelta64.add example.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.