Skip to content

Commit

Permalink
Update walker_class.py
Browse files Browse the repository at this point in the history
./kyu_3/line_safari_is_that_a_line/walker_class.py:222:5: E303 too many blank lines (2)
    def __test_down(self) -> bool:
    ^
./kyu_3/line_safari_is_that_a_line/walker_class.py:228:5: E303 too many blank lines (2)
    def __test_left(self) -> bool:
    ^
./kyu_3/line_safari_is_that_a_line/walker_class.py:234:5: E303 too many blank lines (2)
    def __test_right(self) -> bool:
    ^
  • Loading branch information
ikostan committed Dec 5, 2024
1 parent 1ba5f73 commit 46dc1f3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kyu_3/line_safari_is_that_a_line/walker_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,19 +218,16 @@ def __test_up(self) -> bool:
col: int = self.__position['col']
return row >= 1 and self.__grid[row - 1][col] in 'X|+'

Check warning on line 219 in kyu_3/line_safari_is_that_a_line/walker_class.py

View check run for this annotation

Codecov / codecov/patch

kyu_3/line_safari_is_that_a_line/walker_class.py#L219

Added line #L219 was not covered by tests


def __test_down(self) -> bool:
row: int = self.__position['row']
col: int = self.__position['col']
return row + 1 < len(self.__grid) and self.__grid[row + 1][col] in 'X|+'


def __test_left(self) -> bool:
row: int = self.__position['row']
col: int = self.__position['col']
return col >= 1 and self.__grid[row][col - 1] in 'X+-'


def __test_right(self) -> bool:
row: int = self.__position['row']
col: int = self.__position['col']
Expand Down

0 comments on commit 46dc1f3

Please sign in to comment.