#NEWLINE# def get_champions( ) : #NEWLINE# #INDENT# '\n    Gets all the champions\n\n    Returns:\n        list<Champion>: all the champions\n    ' #NEWLINE# if cassiopeia . core . requests . data_store . has_all ( cassiopeia . type . core . staticdata . Champion ) : #NEWLINE# #INDENT# return cassiopeia . core . requests . data_store . get_all ( cassiopeia . type . core . staticdata . Champion ) #NEWLINE# #UNINDENT# champions = cassiopeia . dto . staticdataapi . get_champions ( ) #NEWLINE# if ( cassiopeia . core . requests . load_policy is cassiopeia . type . core . common . LoadPolicy . eager ) : #NEWLINE# #INDENT# ( cassiopeia . riotapi . get_items ( ) if champ . item_ids else None ) #NEWLINE# #UNINDENT# champions = [ cassiopeia . type . core . staticdata . Champion ( champ [ 1 ] ) for champ in champions . data . items ( ) ] #NEWLINE# cassiopeia . core . requests . data_store . store ( champions , [ champ . id for champ in champions ] , [ cassiopeia . type . core . staticdata . Champion ] ) #NEWLINE# return champions