]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-121196: Document `dict.fromkeys` params as pos-only (#121197)
authorsobolevn <mail@sobolevn.me>
Mon, 1 Jul 2024 20:27:04 +0000 (23:27 +0300)
committerGitHub <noreply@github.com>
Mon, 1 Jul 2024 20:27:04 +0000 (23:27 +0300)
Doc/library/stdtypes.rst

index 34f6e44babe596debd0f13a9bf5fcbc7ca456990..54cc7d1333d34e67253efc2dfc7c1a2ecaaee336 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*.