]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Fix typo in `template_replace()` test helper docstring (GH-132094) (#132095)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 4 Apr 2025 18:04:18 +0000 (20:04 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Apr 2025 18:04:18 +0000 (20:04 +0200)
Fix typo in `template_replace()` test helper docstring (GH-132094)
(cherry picked from commit ac3a7bfeccb752a59d88861e45b454db360aa69d)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
Lib/test/test_typing.py

index 9d499319662873f907f71d692246db99c3cc27ed..9dc719a27575a32a8b6398658688077bac9aeaf4 100644 (file)
@@ -809,7 +809,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"),