Skip to content

Commit a48efa8

Browse files
d-v-bdcherian
andauthored
Update src/zarr/core/group.py
Co-authored-by: Deepak Cherian <[email protected]>
1 parent 180ca9b commit a48efa8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/zarr/core/group.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,8 @@ async def getitem(
693693
return _build_node_v2(metadata=metadata, store_path=store_path)
694694
else:
695695
# this is just for mypy
696-
assert zgroup is not None
696+
if TYPE_CHECKING:
697+
assert zgroup is not None
697698
metadata = _build_metadata_v2(zgroup, zattrs)
698699
return _build_node_v2(metadata=metadata, store_path=store_path)
699700
else:

0 commit comments

Comments
 (0)