(self)
return None
Returning the team that scored a goal.
Returning the team that scored a goal.
Returning the team that scored a goal .
def detected_goal(self):
    """Returning the team that scored a goal."""
    if self._home_goal.detected_entities:
      return team.Team.AWAY
    if self._away_goal.detected_entities:
      return team.Team.HOME
    return None
def detected_goal ( self ) : if self . _home_goal . detected_entities : return team . Team . AWAY if self . _away_goal . detected_entities : return team . Team . HOME return None