Skip to content

Commit 393a3c7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9e5c669 commit 393a3c7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

strings/split.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ def split(string: str, separator: str = " ") -> list:
2727
split_words.append(string[last_index:index])
2828
last_index = index + 1
2929
elif index + 1 == len(string):
30-
split_words.append(string[last_index:index + 1])
30+
split_words.append(string[last_index : index + 1])
3131

3232
if string and string[-1] == separator:
33-
split_words.append('')
33+
split_words.append("")
3434

3535
return split_words
3636

3737

3838
if __name__ == "__main__":
3939
from doctest import testmod
40-
testmod()
40+
41+
testmod()

0 commit comments

Comments
 (0)