From cfb111a3da9f5fed38cdc21aaca214b23b05bdeb Mon Sep 17 00:00:00 2001 From: Tauquir <30658453+itstauq@users.noreply.github.com> Date: Tue, 13 Aug 2024 18:53:46 +0400 Subject: [PATCH] Fix whitespace in attestation report message --- packages/syft/src/syft/service/project/project.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/syft/src/syft/service/project/project.py b/packages/syft/src/syft/service/project/project.py index 1b0b0906fbe..d58397432ff 100644 --- a/packages/syft/src/syft/service/project/project.py +++ b/packages/syft/src/syft/service/project/project.py @@ -121,10 +121,7 @@ def get_event_details(self) -> str: def _coll_repr_(self) -> dict[str, str | dict]: return { "Created at": str(self.timestamp), - "Details": { - "type": "events", - "value": self.get_event_details() - } + "Details": {"type": "events", "value": self.get_event_details()}, } def __repr_syft_nested__(self) -> tuple[str, str]: @@ -787,10 +784,10 @@ def view_attestation_report( else "NVIDIA H100 GPU" ) - mock_report_prefix = "🛑 Mock" if mock_report else "" + mock_report_prefix = "🛑 Mock " if mock_report else "" print( - f"⏳ Retrieving {mock_report_prefix} attestation token from {machine_type}" - + f"Enclave at {provider.route}...", + f"⏳ Retrieving {mock_report_prefix}attestation token from {machine_type}" + + f" Enclave at {provider.route}...", flush=True, ) client = provider.get_guest_client()