From f34bb15ebf050bebc9df48345d04f68a65702837 Mon Sep 17 00:00:00 2001 From: ddelange <14880945+ddelange@users.noreply.github.com> Date: Fri, 20 Dec 2019 01:08:42 +0100 Subject: [PATCH] Fix list of ranges AttributeError: 'list' object has no attribute 'is_empty' --- mixology/union.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mixology/union.py b/mixology/union.py index b2ae34a..e7931b6 100644 --- a/mixology/union.py +++ b/mixology/union.py @@ -20,6 +20,9 @@ def ranges(self): def of(cls, *ranges): flattened = [] for constraint in ranges: + if isinstance(constraint, list): + flattened.extend(constraint) + if constraint.is_empty(): continue