def __init__(self, query, bundle, setup_entities=True):
    query._entities.append(self)
    self.bundle = self.expr = bundle
    self.type = type(bundle)
    self._label_name = bundle.name
    self._entities = []
    if setup_entities:
        for expr in bundle.exprs:
            if isinstance(expr, Bundle):
                _BundleEntity(self, expr)
            else:
                _ColumnEntity(self, expr, namespace=self)
    self.entities = ()
    self.filter_fn = (lambda item: item)
    self.supports_single_entity = self.bundle.single_entity
def __init__(self, query, bundle, setup_entities=True):
    query._entities.append(self)
    self.bundle = self.expr = bundle
    self.type = type(bundle)
    self._label_name = bundle.name
    self._entities = []
    if setup_entities:
        for expr in bundle.exprs:
            if isinstance(expr, Bundle):
                _BundleEntity(self, expr)
            else:
                _ColumnEntity(self, expr, namespace=self)
    self.entities = ()
    self.filter_fn = (lambda item: item)
    self.supports_single_entity = self.bundle.single_entity