fpl/models/user.py
def _set_element_type(lineup, players):
    """Helper for setting the players' element types.

    :param lineup: The user's current lineup.
    :type lineup: list
    :param players: List of all players in the Fantasy Premier League.
    :type players: list
    """
    for player in lineup:
        element_type = _id_to_element_type(player["element"], players)
        player["element_type"] = element_type
Helper for setting the players' element types.

    :param lineup: The user's current lineup.
    :type lineup: list
    :param players: List of all players in the Fantasy Premier League.
    :type players: list
    
Helper for setting the players' element types.
Helper for setting the players ' element types .
def _set_element_type(lineup, players):
    for player in lineup:
        element_type = _id_to_element_type(player["element"], players)
        player["element_type"] = element_type
def _set_element_type ( lineup , players ) : for player in lineup : element_type = _id_to_element_type ( player [ "element" ] , players ) player [ "element_type" ] = element_type
Helper for setting the players' element types.
Helper for setting the players ' element types .
"""Helper for setting the players' element types.

    :param lineup: The user's current lineup.
    :type lineup: list
    :param players: List of all players in the Fantasy Premier League.
    :type players: list
    """
lineup
The user's current lineup.
The user ' s current lineup .
players
List of all players in the Fantasy Premier League.
List of all players in the Fantasy Premier League .