Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ homepage = "https://github.com/zarr-developers/zarr-python"
# pins deliberately, e.g. via dependabot or `uv lock --upgrade`.
[dependency-groups]
test = [
"coverage==7.14.3",
"coverage==7.15.2",
"pytest==9.1.1",
"pytest-asyncio==1.4.0",
"pytest-cov==7.1.0",
"pytest-accept==0.3.0",
"numpydoc==1.10.0",
"hypothesis==6.155.7",
"hypothesis==6.160.0",
"pytest-xdist==3.8.0",
"pytest-benchmark==5.2.3",
"pytest-codspeed==5.0.3",
"tomlkit==0.15.0",
"uv==0.11.26",
"tomlkit==0.15.1",
"uv==0.11.31",
]
remote-tests = [
{include-group = "test"},
Expand All @@ -121,15 +121,15 @@ release = [
]
docs = [
# Doc building
"mkdocs-material[imaging]==9.7.6",
"mkdocs-material[imaging]==9.7.7",
"mkdocs==1.6.1",
"mkdocstrings==1.0.4",
"mkdocstrings==1.0.6",
"mkdocstrings-python==2.0.5",
"mike==2.2.0",
"mkdocs-redirects==1.2.3",
"markdown-exec[ansi]==1.12.1",
"markdown-exec[ansi]==1.12.3",
"griffe-inherited-docstrings==1.1.3",
"ruff==0.15.20",
"ruff==0.15.22",
# Changelog generation
{include-group = "release"},
# Optional dependencies to run examples
Expand All @@ -143,7 +143,7 @@ dev = [
{include-group = "remote-tests"},
{include-group = "docs"},
"universal-pathlib",
"mypy==2.1.0",
"mypy==2.3.0",
]

[tool.coverage.report]
Expand Down
5 changes: 3 additions & 2 deletions src/zarr/core/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,8 @@ def replace_ellipsis(selection: Any, shape: tuple[int, ...]) -> SelectionNormali

def replace_lists(selection: SelectionNormalized) -> SelectionNormalized:
return tuple(
np.asarray(dim_sel) if isinstance(dim_sel, list) else dim_sel for dim_sel in selection
cast("ArrayOfIntOrBool", np.asarray(dim_sel)) if isinstance(dim_sel, list) else dim_sel
for dim_sel in selection
)


Expand Down Expand Up @@ -1193,7 +1194,7 @@ def __init__(
# some initial normalization
selection_normalized = cast("CoordinateSelectionNormalized", ensure_tuple(selection))
selection_normalized = tuple(
np.asarray([i]) if is_integer(i) else i for i in selection_normalized
np.asarray([i], dtype=np.intp) if is_integer(i) else i for i in selection_normalized
)
selection_normalized = cast(
"CoordinateSelectionNormalized", replace_lists(selection_normalized)
Expand Down
Loading
Loading