Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq committed Apr 2, 2024
1 parent d3fdfee commit 3ce2eeb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions src/py/flwr/common/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,9 @@ def create_error_reply(self, error: Error, ttl: float | None = None) -> Message:
"""
if ttl:
warnings.warn(
"A custom TTL was set, but note that the SuperLink does not enforce the TTL yet."
"The SuperLink will start enforcing the TTL in a future version of Flower.",
"A custom TTL was set, but note that the SuperLink does not enforce "
"the TTL yet. The SuperLink will start enforcing the TTL in a future "
"version of Flower.",
stacklevel=2,
)
# If no TTL passed, use default for message creation (will update after
Expand Down Expand Up @@ -358,8 +359,9 @@ def create_reply(self, content: RecordSet, ttl: float | None = None) -> Message:
"""
if ttl:
warnings.warn(
"A custom TTL was set, but note that the SuperLink does not enforce the TTL yet."
"The SuperLink will start enforcing the TTL in a future version of Flower.",
"A custom TTL was set, but note that the SuperLink does not enforce "
"the TTL yet. The SuperLink will start enforcing the TTL in a future "
"version of Flower.",
stacklevel=2,
)
# If no TTL passed, use default for message creation (will update after
Expand Down
5 changes: 3 additions & 2 deletions src/py/flwr/server/driver/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ def create_message( # pylint: disable=too-many-arguments
_, run_id = self._get_grpc_driver_and_run_id()
if ttl:
warnings.warn(
"A custom TTL was set, but note that the SuperLink does not enforce the TTL yet."
"The SuperLink will start enforcing the TTL in a future version of Flower.",
"A custom TTL was set, but note that the SuperLink does not enforce "
"the TTL yet. The SuperLink will start enforcing the TTL in a future "
"version of Flower.",
stacklevel=2,
)

Expand Down

0 comments on commit 3ce2eeb

Please sign in to comment.