Skip to content

Commit

Permalink
fix(types): Group.info -> NotImplementedError
Browse files Browse the repository at this point in the history
(until we implement it)
  • Loading branch information
jhamman committed Jun 1, 2024
1 parent b4cdf94 commit fc0fada
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 0 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -200,17 +200,10 @@ ignore_errors = true

[[tool.mypy.overrides]]
module = [
"zarr.group",
"tests.*",
]
check_untyped_defs = false

[[tool.mypy.overrides]]
module = [
"zarr.group"
]
disallow_incomplete_defs = false

[[tool.mypy.overrides]]
module = [
"zarr.array",
Expand All @@ -221,7 +214,6 @@ disallow_untyped_calls = false
[[tool.mypy.overrides]]
module = [
"zarr.array",
"zarr.group",
]
disallow_untyped_defs = false

Expand Down
8 changes: 4 additions & 4 deletions src/zarr/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ def attrs(self) -> dict[str, Any]:
return self.metadata.attributes

@property
def info(self):
return self.metadata.info
def info(self) -> None:
raise NotImplementedError

async def create_group(
self,
Expand Down Expand Up @@ -526,8 +526,8 @@ def attrs(self) -> Attributes:
return Attributes(self)

@property
def info(self):
return self._async_group.info
def info(self) -> None:
raise NotImplementedError

def update_attributes(self, new_attributes: dict[str, Any]) -> Group:
self._sync(self._async_group.update_attributes(new_attributes))
Expand Down

0 comments on commit fc0fada

Please sign in to comment.