Skip to content

Commit

Permalink
remove complex types for 3.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjnixon committed Apr 9, 2024
1 parent 27d6a74 commit d7955b8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ear/core/select_items/test/test_pack_allocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit d7955b8

Please sign in to comment.