Skip to content

Backport type fixes to __getitem__ to previous specification revisions - #687

Merged
kgryte merged 3 commits into
data-apis:mainfrom
kgryte:backport-indexing-type-fixes
Nov 6, 2023
Merged

Backport type fixes to __getitem__ to previous specification revisions#687
kgryte merged 3 commits into
data-apis:mainfrom
kgryte:backport-indexing-type-fixes

Conversation

@kgryte

Copy link
Copy Markdown
Contributor

This PR

  • is a follow-up to Clarify types to allow None in indexing #674, where the changes introduced in that PR are backported to previous specification revisions.
  • as the specification guidance describes the use of None in multi-axis indexing from the 2021 revision onward, the exclusion of None from the typings was an omission. This PR addresses this omission.
  • introduces a short note regarding newaxis which is not mentioned in the indexing document, but should likely be mentioned due to its use as a more literate means for introducing new axes.

@kgrytekgryte added topic: Indexing Array indexing. Backport Changes involve backporting to previous versions. labels Sep 20, 2023
@kgrytekgryte added this to the v2023 milestone Sep 20, 2023
@kgryte
kgryte requested a review from honnoOctober 18, 2023 23:25
@kgryte

Copy link
Copy Markdown
ContributorAuthor

@honno Would you mind reviewing?

@honnohonno left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@kgryte

Copy link
Copy Markdown
ContributorAuthor

As this has gotten the thumbs up, will go ahead and merge. Any further changes can be addressed in follow-up PRs...

@kgryte
kgryte merged commit 0f64005 into data-apis:mainNov 6, 2023
@kgryte
kgryte deleted the backport-indexing-type-fixes branch November 6, 2023 04:23
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BackportChanges involve backporting to previous versions.topic: IndexingArray indexing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@kgryte@honno