Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
panh99 committed Nov 24, 2023
1 parent e3515a5 commit d0cc1f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
11 changes: 11 additions & 0 deletions src/py/flwr/client/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ def _parse_args_client() -> argparse.ArgumentParser:
parser.add_argument(
"--server",
default="0.0.0.0:9092",
help="Server address",
)
parser.add_argument(
"--callable",
help="For example: `client:flower` or `project.package.module:wrapper.flower`",
)
parser.add_argument(
"--callable-dir",
default="",
help="Add specified directory to the PYTHONPATH and load callable from there."
" Default: current working directory.",
)

return parser
Expand Down
21 changes: 0 additions & 21 deletions src/py/flwr/client/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,8 @@
# ==============================================================================
"""Custom types for Flower clients."""

from dataclasses import dataclass
from typing import Callable

from flwr.client.workload_state import WorkloadState
from flwr.proto.task_pb2 import TaskIns, TaskRes

from .client import Client as Client


@dataclass
class Fwd:
"""."""

task_ins: TaskIns
state: WorkloadState


@dataclass
class Bwd:
"""."""

task_res: TaskRes
state: WorkloadState


ClientFn = Callable[[str], Client]

0 comments on commit d0cc1f1

Please sign in to comment.