From 986f84f75baa56510149185cfee518c14d62511d Mon Sep 17 00:00:00 2001 From: Charles Beauville Date: Tue, 30 Jul 2024 21:35:57 +0200 Subject: [PATCH 1/2] feat(framework) Add FAB type --- src/py/flwr/common/typing.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/py/flwr/common/typing.py b/src/py/flwr/common/typing.py index c050fe6d4a1..c92606b2030 100644 --- a/src/py/flwr/common/typing.py +++ b/src/py/flwr/common/typing.py @@ -199,3 +199,11 @@ class Run: fab_id: str fab_version: str override_config: UserConfig + + +@dataclass +class Fab: + """Fab file representation.""" + + hash_str: str + data_bytes: bytes From f4b9a5b63f0be6a49de624d1cfa5d4e137dc0b3c Mon Sep 17 00:00:00 2001 From: Charles Beauville Date: Tue, 6 Aug 2024 09:21:07 +0200 Subject: [PATCH 2/2] Rename attribute --- src/py/flwr/common/typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py/flwr/common/typing.py b/src/py/flwr/common/typing.py index c92606b2030..0a48ab98059 100644 --- a/src/py/flwr/common/typing.py +++ b/src/py/flwr/common/typing.py @@ -206,4 +206,4 @@ class Fab: """Fab file representation.""" hash_str: str - data_bytes: bytes + content: bytes