Skip to content

Commit 78828ab

Browse files
committed
Fixup
1 parent 1878f9f commit 78828ab

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/zarr/_tree.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import io
2+
from collections.abc import Sequence
23
from typing import Any
34

45
from zarr.core.group import AsyncGroup
@@ -21,10 +22,15 @@ def __repr__(self) -> str:
2122
console.print(self.tree)
2223
return str(console.file.getvalue())
2324

24-
def _repr_mimebundle_(self, **kwargs: dict[str, Any]) -> dict[str, str]:
25+
def _repr_mimebundle_(
26+
self,
27+
include: Sequence[str],
28+
exclude: Sequence[str],
29+
**kwargs: Any,
30+
) -> dict[str, str]:
2531
# For jupyter support.
26-
# We don't depend on jupyter, so we can't do the static types appropriately here.
27-
return self.tree._repr_mimebundle_(**kwargs) # type: ignore[no-any-return]
32+
# Unsure why mypy infers the return type to by Any
33+
return self.tree._repr_mimebundle_(include=include, exclude=exclude, **kwargs) # type: ignore[no-any-return]
2834

2935

3036
async def group_tree_async(group: AsyncGroup, max_depth: int | None = None) -> TreeRepr:

0 commit comments

Comments
 (0)