#NEWLINE# def get_item( id_ ) : #NEWLINE# #INDENT# '\n    Gets an item\n\n    Args:\n        id_ (int): the ID of the item to get\n\n    Returns:\n        Item: the item\n    ' #NEWLINE# if ( id_ in _ignore_items ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# item = cassiopeia . core . requests . data_store . get ( cassiopeia . type . core . staticdata . Item , id_ , 'id' ) #NEWLINE# if item : #NEWLINE# #INDENT# return item #NEWLINE# #UNINDENT# if ( cassiopeia . core . requests . load_policy is cassiopeia . type . core . common . LoadPolicy . eager ) : #NEWLINE# #INDENT# items = cassiopeia . riotapi . get_items ( ) #NEWLINE# item = None #NEWLINE# for itm in items : #NEWLINE# #INDENT# if ( itm . id == id_ ) : #NEWLINE# #INDENT# item = itm #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# item = cassiopeia . dto . staticdataapi . get_item ( id_ ) #NEWLINE# item = cassiopeia . type . core . staticdata . Item ( item ) #NEWLINE# cassiopeia . core . requests . data_store . store ( item , id_ ) #NEWLINE# #UNINDENT# return item