]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-121196: Document `dict.fromkeys` params as pos-only (GH-121197) (#121242)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 1 Jul 2024 20:43:34 +0000 (22:43 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Jul 2024 20:43:34 +0000 (20:43 +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 79687b94f0a8e43365491678ff2c158d4c7f46bc..8a7f73754ad90483cf66f51af1d51df6e1fe68e7 100644 (file)
@@ -4565,7 +4565,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*.