-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: change
Content._getitem_range
to use explicit indices (#2220
) * wip: use `unknown_length` * refactor: remove last vestiges of `XXX_shape_item` * refactor: move `unknown_length` to new submodule * fix: ensure forms with `unknown_length` serialise to JSON * chore: appease pylint * fix: revert `length=unset` change to `RecordArray.__init__` * refactor: use defined `str()` of `unknown_length` * feat!: change API for `_getitem_range` * docs: improve docstring * refactor: remove unused code * refactor: add type hints * fix: support `content` with unknown lengths * refactor: make type relationship explicit * fix: properly normalise slice * refactor: add `IndexType` distinction * wip: fix slice normalisation * fix: proper slice handling * refactor: use US spelling * refactor: move slice expansion to nplike * fix: ufuncs that return tuples * test: add tests for slicing * fix: support slice length * fix: bugs in length detection * refactor: use `IndexType` instead of `SupportsIndex`
- Loading branch information
Showing
20 changed files
with
364 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.