From 51c330414c6dfd6545052f55ba179b4c8643295f Mon Sep 17 00:00:00 2001 From: Justin Cinkelj Date: Tue, 16 Jul 2024 22:32:54 +0200 Subject: [PATCH] mypy --- plugins/module_utils/vm_snapshot.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/module_utils/vm_snapshot.py b/plugins/module_utils/vm_snapshot.py index 0f855840..d17f58de 100644 --- a/plugins/module_utils/vm_snapshot.py +++ b/plugins/module_utils/vm_snapshot.py @@ -190,8 +190,12 @@ def __eq__(self, other: object) -> bool: check_vm = True # it will stay True if self.vm == {} if self.vm != {}: - vm_sorted_disks = sorted(self.vm["disks"], key=lambda disk: disk["iso_name"]) # type: ignore - other_sorted_disks = sorted(other.vm["disks"], key=lambda disk: disk["iso_name"]) # type: ignore + vm_sorted_disks = sorted( + self.vm["disks"], key=lambda disk: disk["iso_name"] + ) + other_sorted_disks = sorted( + other.vm["disks"], key=lambda disk: disk["iso_name"] + ) check_vm = all( (