Skip to content

Commit

Permalink
Fds fix missing __all__ in inits (#2599)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-narozniak authored Nov 15, 2023
1 parent db38b94 commit d00a579
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 5 deletions.
10 changes: 7 additions & 3 deletions datasets/flwr_datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@
"""Flower Datasets main package."""


from flwr_datasets import partitioner, resplitter
from flwr_datasets.common.version import package_version as _package_version
from flwr_datasets.federated_dataset import FederatedDataset

from .federated_dataset import FederatedDataset

__all__ = ["FederatedDataset"]
__all__ = [
"FederatedDataset",
"partitioner",
"resplitter",
]

__version__ = _package_version
22 changes: 22 additions & 0 deletions datasets/flwr_datasets/resplitter/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2023 Flower Labs GmbH. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Resplitter package."""


from .merge_resplitter import MergeResplitter

__all__ = [
"MergeResplitter",
]
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import pytest

from datasets import Dataset, DatasetDict
from flwr_datasets.merge_resplitter import MergeResplitter
from flwr_datasets.resplitter.merge_resplitter import MergeResplitter


class TestResplitter(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion datasets/flwr_datasets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
from typing import Dict, Optional, Tuple, Union, cast

from flwr_datasets.common import Resplitter
from flwr_datasets.merge_resplitter import MergeResplitter
from flwr_datasets.partitioner import IidPartitioner, Partitioner
from flwr_datasets.resplitter.merge_resplitter import MergeResplitter

tested_datasets = [
"mnist",
Expand Down

0 comments on commit d00a579

Please sign in to comment.