fpl/models/user.py
def valid_gameweek(gameweek):
    """Returns True if the gameweek is valid.

    :param gameweek: The gameweek.
    :type gameweek: int or string
    :raises ValueError: if gameweek is not a number between 1 and 38
    """
    gameweek = int(gameweek)
    if (gameweek < MIN_GAMEWEEK) or (gameweek > MAX_GAMEWEEK):
        raise ValueError(f"Gameweek must be a number between {MIN_GAMEWEEK} and {MAX_GAMEWEEK}.")
    return True
Returns True if the gameweek is valid.

    :param gameweek: The gameweek.
    :type gameweek: int or string
    :raises ValueError: if gameweek is not a number between 1 and 38
    
Returns True if the gameweek is valid.
Returns True if the gameweek is valid .
def valid_gameweek(gameweek):
    gameweek = int(gameweek)
    if (gameweek < MIN_GAMEWEEK) or (gameweek > MAX_GAMEWEEK):
        raise ValueError(f"Gameweek must be a number between {MIN_GAMEWEEK} and {MAX_GAMEWEEK}.")
    return True
def valid_gameweek ( gameweek ) : gameweek = int ( gameweek ) if ( gameweek < MIN_GAMEWEEK ) or ( gameweek > MAX_GAMEWEEK ) : raise ValueError ( f"Gameweek must be a number between {MIN_GAMEWEEK} and {MAX_GAMEWEEK}." ) return True
Returns True if the gameweek is valid.
Returns True if the gameweek is valid .
"""Returns True if the gameweek is valid.

    :param gameweek: The gameweek.
    :type gameweek: int or string
    :raises ValueError: if gameweek is not a number between 1 and 38
    """
if gameweek is not a number between 1 and 38
if gameweek is not a number between 1 and 38
ValueError
gameweek
None