From 0f2e7df6cc84507ecf1ad3c3cf56cfb2d7902781 Mon Sep 17 00:00:00 2001 From: mohammadnaseri Date: Tue, 10 Sep 2024 22:12:55 +0100 Subject: [PATCH] Format --- src/py/flwr/server/superlink/state/utils_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/py/flwr/server/superlink/state/utils_test.py b/src/py/flwr/server/superlink/state/utils_test.py index e50f1c6a9a73..14a4af2c124e 100644 --- a/src/py/flwr/server/superlink/state/utils_test.py +++ b/src/py/flwr/server/superlink/state/utils_test.py @@ -22,7 +22,7 @@ class UtilsTest(unittest.TestCase): """Test utils code.""" - def test_uint64_to_sint64(self): + def test_uint64_to_sint64(self) -> None: """Test conversion from uint64 to sint64.""" # Test values below 2^63 self.assertEqual(uint64_to_sint64(0), 0) @@ -34,7 +34,7 @@ def test_uint64_to_sint64(self): self.assertEqual(uint64_to_sint64(2**63 + 1), -(2**63) + 1) self.assertEqual(uint64_to_sint64(2**64 - 1), -1) - def test_sint64_to_uint64(self): + def test_sint64_to_uint64(self) -> None: """Test conversion from sint64 to uint64.""" # Test values within the range of sint64 self.assertEqual(sint64_to_uint64(-(2**63)), 2**63) @@ -47,7 +47,7 @@ def test_sint64_to_uint64(self): self.assertEqual(sint64_to_uint64(2**63), 2**63) self.assertEqual(sint64_to_uint64(2**64 - 1), 2**64 - 1) - def test_generate_rand_int_from_bytes_unsigned_int(self): + def test_generate_rand_int_from_bytes_unsigned_int(self) -> None: """Test that the generated integer is unsigned (non-negative).""" for num_bytes in range(1, 9): with self.subTest(num_bytes=num_bytes):