]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-121196: Document `dict.fromkeys` params as pos-only (GH-121197) (#121243)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 1 Jul 2024 20:37:19 +0000 (22:37 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Jul 2024 20:37:19 +0000 (20:37 +0000)
gh-121196: Document `dict.fromkeys` params as pos-only (GH-121197)
(cherry picked from commit 1dc9a4f6b20148fd4ef2eb2800a6c65224828181)

Co-authored-by: sobolevn <mail@sobolevn.me>
Doc/library/stdtypes.rst

index f1f413ef366dd14f1d7be95fc41115f8511a8a0a..6d99d074d9dda708c049d2fe85242fb1575dcf42 100644 (file)
@@ -4556,7 +4556,7 @@ can be used interchangeably to index the same dictionary entry.
 
       Return a shallow copy of the dictionary.
 
-   .. classmethod:: fromkeys(iterable, value=None)
+   .. classmethod:: fromkeys(iterable, value=None, /)
 
       Create a new dictionary with keys from *iterable* and values set to *value*.