def substitutetype(ty):
 ty = ty.replace('std::', '')
 ty = re.sub('(.*)<(.*)>', '\\1< \\2 >', ty)
 return ty

def substitutetype ( ty ) : ty = ty . replace ( 'std::' , '' ) ty = re . sub ( '(.*)<(.*)>' , '\\1< \\2 >' , ty ) return ty
fix types to match the standard format in the final docs .