[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-03 22:05:57 +00:00
parent ce03ae6822
commit b4ec916773

View File

@ -1,4 +1,6 @@
def string_replace(text: str, input_string: str, replace_with_string: str, occurrence: int) -> str:
def string_replace(
text: str, input_string: str, replace_with_string: str, occurrence: int
) -> str:
"""
https://docs.python.org/3/library/stdtypes.html#str.replace
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
if __name__ == "__main__":
from doctest import testmod
testmod()