Try all pairs of choices, not just a small subset via zip

This commit is contained in:
Alex Stokes 2019-09-03 13:28:31 -07:00
parent f8bbaf60a1
commit bfd674e22c
No known key found for this signature in database
GPG Key ID: 51CE1721B245C086

View File

@ -1,4 +1,5 @@
from dataclasses import dataclass
import itertools
from typing import Optional, Tuple
import multihash
@ -180,7 +181,7 @@ def _select_parameter_from_order(
else:
return supported_parameters.split(",")[0]
for first, second in zip(first_choices, second_choices):
for first, second in itertools.product(first_choices, second_choices):
if first == second:
return first
raise IncompatibleChoices()