]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Fix typo in `template_replace()` test helper docstring (GH-132094) (#132096)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 4 Apr 2025 18:04:01 +0000 (20:04 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Apr 2025 18:04:01 +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 5c862d7928c950cde1e107a0ac0c190321ecde09..5e9de3058a8febfbaa5e1331eeec207d530dbe96 100644 (file)
@@ -611,7 +611,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"),