@memoized
def _block_types_possibly_scored():
 return frozenset((category for (category, xblock_class) in XBlock.load_classes() if (getattr(xblock_class, 'has_score', False) or getattr(xblock_class, 'has_children', False))))

@ memoized def _block_types_possibly_scored ( ) : return frozenset ( ( category for ( category , xblock_class ) in XBlock . load_classes ( ) if ( getattr ( xblock_class , 'has_score' , False ) or getattr ( xblock_class , 'has_children' , False ) ) ) )
returns the block types that could have a score .