#NEWLINE# def get_categories( self , tied_only = None ) : #NEWLINE# #INDENT# 'Returns a list of actual subcategories.\n\n        :param bool tied_only: Flag to get only categories with ties. Ties stats are stored in `ties_num` attrs.\n        :rtype: list\n        :return: a list of actual subcategories\n        ' #NEWLINE# if ( self . _cache_get_categories is not None ) : #NEWLINE# #INDENT# return self . _cache_get_categories #NEWLINE# #UNINDENT# if ( tied_only is None ) : #NEWLINE# #INDENT# tied_only = ( self . obj is not None ) #NEWLINE# #UNINDENT# return get_cache ( ) . get_categories ( self . alias , self . obj , tied_only = tied_only )