Skip to content

Commit

Permalink
Update enough.py
Browse files Browse the repository at this point in the history
kyu_8/will_there_be_enough_space/enough.py:10 in public function `enough`:
        D401: First line should be in imperative mood; try rephrasing (found 'The')

        [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 24, 2024
1 parent d08cdaa commit f32c8cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kyu_8/will_there_be_enough_space/enough.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

def enough(cap: int, on: int, wait: int) -> int:
"""
'enough' function.
The driver wants you to write a simple program telling him if
he will be able to fit all the passengers.
Expand All @@ -19,7 +21,6 @@ def enough(cap: int, on: int, wait: int) -> int:
cap is the amount of people the bus can hold excluding the driver.
on is the number of people on the bus.
wait is the number of people waiting to get on to the bus.
:param cap: int
:param on: int
:param wait: int
Expand Down

0 comments on commit f32c8cd

Please sign in to comment.