cubes_lite/model/utils.py
def assert_all_instances(list_, class_, label='object'):
    """Raises ArgumentError when objects in `list_` are not instances of
    `cls`"""

    for obj in list_ or []:
        assert_instance(obj, class_, label='object')
Raises ArgumentError when objects in `list_` are not instances of
    `cls`
Raises ArgumentError when objects in `list_` are not instances of
`cls`
Raises ArgumentError when objects in ` list_ ` are not instances of ` cls `
def assert_all_instances(list_, class_, label='object'):
    for obj in list_ or []:
        assert_instance(obj, class_, label='object')
def assert_all_instances ( list_ , class_ , label = 'object' ) : for obj in list_ or [ ] : assert_instance ( obj , class_ , label = 'object' )
Raises ArgumentError when objects in `list_` are not instances of
`cls`
Raises ArgumentError when objects in ` list_ ` are not instances of ` cls `
"""Raises ArgumentError when objects in `list_` are not instances of
    `cls`"""
list_
class_
label