Skip to content

Commit

Permalink
Update evaluate.py
Browse files Browse the repository at this point in the history
kyu_2/evaluate_mathematical_expression/evaluate.py:173 in public function `check_conditions`:
        D401: First line should be in imperative mood (perhaps 'Normalize', not 'Normalizing')

        [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 2, 2024
1 parent 0c05c7d commit 92981fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kyu_2/evaluate_mathematical_expression/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ def calc(string: str) -> float:

def check_conditions(strings: list, string: str, temp: str) -> tuple[str, str]:
"""
Normalizing string input by checking conditions.
Test string normalization.
Normalize string input by checking conditions.
:param strings: list
:param string: str
:param temp: str
Expand Down

0 comments on commit 92981fe

Please sign in to comment.