From a167716b7bc3915838e5a3b91635a978a46f1f36 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 20:39:19 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- xcollection/main.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/xcollection/main.py b/xcollection/main.py index 6389533..8db711d 100644 --- a/xcollection/main.py +++ b/xcollection/main.py @@ -128,7 +128,6 @@ def __eq__(self, other: object) -> bool: return True def __repr__(self) -> str: - output = ''.join(f'{unicode_key} {key}\n{repr(value)}\n\n' for key, value in self.items()) return f'<{type(self).__name__} ({len(self)} keys)>\n{output}' @@ -517,12 +516,10 @@ def _check_dim(self, dim: Optional[Union[Hashable, Iterable[Hashable]]]): ) def _implementation(self, func, dim, **kwargs) -> 'Collection': - self._check_dim(dim) dataset_dict = {} for key, dataset in self.obj.items(): - dataset = dataset.map(func, dim=dim, **kwargs) dataset_dict[key] = dataset return Collection(dataset_dict)