Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
chongshenng committed Aug 15, 2024
1 parent 81c2a83 commit 3ae8021
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/py/flwr/client/process/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"""Flower background ClientApp."""

from logging import DEBUG, ERROR, INFO
from typing import Tuple

import grpc

Expand All @@ -31,7 +32,7 @@
)
from flwr.common.typing import Run

# pylint: disable=E0401,E0611
# pylint: disable=E0611
from flwr.proto.clientappio_pb2 import (
PullClientAppInputsRequest,
PullClientAppInputsResponse,
Expand Down Expand Up @@ -96,7 +97,7 @@ def on_channel_state_change(channel_connectivity: str) -> None:
channel.close()


def pull_message(stub: grpc.Channel, token: int) -> tuple[Run, Message, Context]:
def pull_message(stub: grpc.Channel, token: int) -> Tuple[Run, Message, Context]:
"""Pull message from SuperNode to ClientApp."""
res: PullClientAppInputsResponse = stub.PullClientAppInputs(
PullClientAppInputsRequest(token=token)
Expand Down

0 comments on commit 3ae8021

Please sign in to comment.