Skip to content

Commit

Permalink
Drop .keys() when iterating over a dict
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-narozniak committed Jun 21, 2024
1 parent 29dacd8 commit 05dcca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datasets/flwr_datasets/federated_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def __init__(
# Indicate if the dataset is prepared for `load_partition` or `load_split`
self._dataset_prepared: bool = False
self._event = {
"load_partition": {split: False for split in self._partitioners.keys()},
"load_split": {split: False for split in self._partitioners.keys()},
"load_partition": {split: False for split in self._partitioners},
"load_split": {split: False for split in self._partitioners},
}

def load_partition(
Expand Down

0 comments on commit 05dcca2

Please sign in to comment.