Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 6, 2023
1 parent 5b1ee77 commit a167716
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions xcollection/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a167716

Please sign in to comment.