Skip to content

Commit b4ec916

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

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
https://docs.python.org/3/library/stdtypes.html#str.replace
46
The replace() method replaces a specified string with another specified string.
@@ -19,4 +21,5 @@ def string_replace(text: str, input_string: str, replace_with_string: str, occur
1921

2022
if __name__ == "__main__":
2123
from doctest import testmod
24+
2225
testmod()

0 commit comments

Comments
 (0)