Skip to content

Commit

Permalink
Update compute_ranks.py
Browse files Browse the repository at this point in the history
kyu_5/sports_league_table_ranking/compute_ranks.py:102 in public function `calc_team_points`:
        D401: First line should be in imperative mood (perhaps 'Calculate', not 'Calculates')

        [Docstring] prescribes the function or method's effect as a command:
        ("Do this", "Return that"), not as a description; e.g. don't write
        "Returns the pathname ...".
  • Loading branch information
ikostan committed Dec 13, 2024
1 parent af4ebd7 commit 2718226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kyu_5/sports_league_table_ranking/compute_ranks.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def check_if_team_registered(team, teams, number) -> None:

def calc_team_points(team, teams, score_a, score_b) -> None:
"""
Calculates team points.
Calculate team points.
:param team:
:param teams:
Expand Down

0 comments on commit 2718226

Please sign in to comment.