From b4ec916773448bbd4cde08a6caa54d119984eed4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 3 Oct 2024 22:05:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- strings/replace.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/strings/replace.py b/strings/replace.py index 967e251f2..16ef7cbba 100644 --- a/strings/replace.py +++ b/strings/replace.py @@ -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()