#NEWLINE# def __get_rune_pages_by_id( ids ) : #NEWLINE# #INDENT# pages = cassiopeia . core . requests . call_with_ensured_size ( cassiopeia . dto . summonerapi . get_summoner_runes , 40 , ids ) #NEWLINE# if ( cassiopeia . core . requests . load_policy is cassiopeia . type . core . common . LoadPolicy . eager ) : #NEWLINE# #INDENT# rune_ids = set ( ) #NEWLINE# for page in pages . values ( ) : #NEWLINE# #INDENT# rune_ids |= page . rune_ids #NEWLINE# #UNINDENT# ( cassiopeia . riotapi . get_runes ( ) if ids else None ) #NEWLINE# #UNINDENT# if ( not isinstance ( ids , list ) ) : #NEWLINE# #INDENT# return [ cassiopeia . type . core . summoner . RunePage ( page ) for page in pages [ str ( ids ) ] . pages ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return [ [ cassiopeia . type . core . summoner . RunePage ( page ) for page in pages [ str ( id_ ) ] . pages ] for id_ in ids ]