def METHOD_NAME(self, team: bascenev1.Team, score: int | None) -> None:
    """Set the score for a given team.
    This can be a number or None.
    (see the none_is_winner arg in the constructor)
    """
    assert isinstance(team, Team)
    sessionteam = team.sessionteam
    self._scores[sessionteam.id] = (weakref.ref(sessionteam), score)