'Base implementation for combining two restrictions.'

def __or__(self, other_restriction):

    if isinstance(other_restriction, _UnionRestrictions):
        return (other_restriction | self)
    return _UnionRestrictions([self, other_restriction])
