Skip to content

Commit

Permalink
Update solution.py
Browse files Browse the repository at this point in the history
kyu_3/make_spiral/solution.py:180 in public function `set_initial_params`:
        D401: First line should be in imperative mood (perhaps 'Set', not 'Setting')

        [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 ...".

kyu_3/make_spiral/solution.py:203 in public function `spiralize`:
        D401: First line should be in imperative mood (perhaps 'Create', not 'Creates')

        [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 3, 2024
1 parent 94b4d1e commit 20b0f72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kyu_3/make_spiral/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def up(spiral: list, coordinates: dict) -> bool:

def set_initial_params(size: int) -> tuple:
"""
Setting initial params.
Set initial params.
Initial parameters: line, spiral, direction, coordinate, done.
:param size:
Expand All @@ -201,7 +201,7 @@ def set_initial_params(size: int) -> tuple:

def spiralize(size: int) -> list:
"""
Creates a NxN spiral 2D list with a given size.
Create a NxN spiral 2D list with a given size.
:param size: size of the 2D array
:return: list, NxN spiral 2D array
Expand Down

0 comments on commit 20b0f72

Please sign in to comment.