def _all_block_types(descriptors, aside_types):
 block_types = set()
 for descriptor in descriptors:
  block_types.add(BlockTypeKeyV1(descriptor.entry_point, descriptor.scope_ids.block_type))
 for aside_type in aside_types:
  block_types.add(BlockTypeKeyV1(XBlockAside.entry_point, aside_type))
 return block_types

def _all_block_types ( descriptors , aside_types ) : block_types = set ( ) for descriptor in descriptors : block_types . add ( BlockTypeKeyV1 ( descriptor . entry_point , descriptor . scope_ids . block_type ) ) for aside_type in aside_types : block_types . add ( BlockTypeKeyV1 ( XBlockAside . entry_point , aside_type ) ) return block_types
return a set of all block_types for the supplied descriptors and for the asides types in aside_types associated with those descriptors .