python:gkdi: Reformat code with ‘ruff’
authorJo Sutton <josutton@catalyst.net.nz>
Fri, 5 Apr 2024 00:43:30 +0000 (13:43 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 16 Apr 2024 03:58:31 +0000 (03:58 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/gkdi.py

index b62a00ed3c258dad36e275142580732c029a1b4c..22890c83ff3a2db4b9639423ab732bcfa2ca785e 100644 (file)
@@ -352,13 +352,15 @@ class SeedKeyPair:
         )
 
     def __hash__(self) -> int:
-        return hash((
-            self.l1_key,
-            self.l2_key,
-            self.gkid,
-            self.hash_algorithm,
-            ndr_pack(self.root_key_id),
-        ))
+        return hash(
+            (
+                self.l1_key,
+                self.l2_key,
+                self.gkid,
+                self.hash_algorithm,
+                ndr_pack(self.root_key_id),
+            )
+        )
 
 
 class GroupKey: