]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in `template_replace()` test helper docstring (#132094)
authorVictorien <65306057+Viicos@users.noreply.github.com>
Fri, 4 Apr 2025 17:38:09 +0000 (19:38 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Apr 2025 17:38:09 +0000 (17:38 +0000)
Lib/test/test_typing.py

index 97d3a927160b8f6f98728025462966e26d8fd721..ead589fef6cd11103f32c368435cc7da0b2fcc03 100644 (file)
@@ -812,7 +812,7 @@ def template_replace(templates: list[str], replacements: dict[str, list[str]]) -
 
     Example 1: Suppose that:
       templates = ["dog_breed are awesome", "dog_breed are cool"]
-      replacements = ["dog_breed": ["Huskies", "Beagles"]]
+      replacements = {"dog_breed": ["Huskies", "Beagles"]}
     Then we would return:
       [
           ("Huskies are awesome", "Huskies are cool"),