Skip to content

Commit 19db3e3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fbd2977 commit 19db3e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: strings/replace.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
def string_replace(text: str, input_string: str, replace_with_string: str, occurrence: int) -> str:
1+
def string_replace(
2+
text: str, input_string: str, replace_with_string: str, occurrence: int
3+
) -> str:
24
"""
35
The replace() method replaces a specified string with another specified string.
46
The occurence parameter can be skipped in order to consider all text.
@@ -18,4 +20,5 @@ def string_replace(text: str, input_string: str, replace_with_string: str, occur
1820

1921
if __name__ == "__main__":
2022
from doctest import testmod
23+
2124
testmod()

0 commit comments

Comments
 (0)