From d7955b8a77d4908a1baaa7bd3b2aadc174120bf4 Mon Sep 17 00:00:00 2001 From: Thomas Nixon Date: Tue, 9 Apr 2024 13:44:27 +0100 Subject: [PATCH] remove complex types for 3.8 support --- ear/core/select_items/test/test_pack_allocation.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ear/core/select_items/test/test_pack_allocation.py b/ear/core/select_items/test/test_pack_allocation.py index efd62b2..847098b 100644 --- a/ear/core/select_items/test/test_pack_allocation.py +++ b/ear/core/select_items/test/test_pack_allocation.py @@ -16,15 +16,13 @@ def pack_allocation_to_ids(pack: AllocatedPack): ] -def normalise_allocation(allocation: list[AllocatedPack]) -> list[AllocatedPack]: +def normalise_allocation(allocation): """normalise an allocation by sorting the packs, so that equal allocations are equal""" return sorted(allocation, key=pack_allocation_to_ids) -def normalise_allocations( - allocations: list[list[AllocatedPack]], -) -> list[list[AllocatedPack]]: +def normalise_allocations(allocations): """normalise a list of allocations, so that equal lists of allocations are equal""" normalised_allocations = [