Skip to content

Commit

Permalink
Update encoding_and_decoding.py
Browse files Browse the repository at this point in the history
kyu_3/rail_fence_cipher_encoding_and_decoding/encoding_and_decoding.py:10 in public function `get_rails`:
        D202: No blank lines allowed after function docstring (found 1)

        There's no blank line either before or after the docstring unless directly
        followed by an inner function or class.
  • Loading branch information
ikostan committed Dec 3, 2024
1 parent 34e3427 commit 1be92f9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
def get_rails(string: str, n: int) -> list:
"""
Create rails matrix.
:param string: str
:param n: int, the number of rails
:return: list, rails matrix
Expand All @@ -23,7 +22,7 @@ def get_rails(string: str, n: int) -> list:
down = True
for char in string:

for char_index in range(0, n):
for char_index in range(n):
if char_index != row:
rails[char_index].append("")
else:
Expand Down

0 comments on commit 1be92f9

Please sign in to comment.